And the fate of /gui is sealed

Make sure that the proper files that are not in `/gui` are loaded.
This commit is contained in:
buzz-lightsnack-2007 2024-04-15 15:49:22 +08:00
parent 527d7b6835
commit 0059314655
10 changed files with 9 additions and 82 deletions

View file

@ -39,7 +39,7 @@ function events(window) {
.addEventListener(`click`, async () => {
// Import the filters module.
const texts = (
await import(chrome.runtime.getURL(`gui/scripts/read.js`))
await import(chrome.runtime.getURL(`/scripts/strings/read.js`))
).default;
let filters = new (
await import(chrome.runtime.getURL(`scripts/filters.js`))
@ -59,7 +59,7 @@ function events(window) {
.addEventListener(`click`, async () => {
// Import the filters module.
const texts = (
await import(chrome.runtime.getURL(`gui/scripts/read.js`))
await import(chrome.runtime.getURL(`/scripts/strings/read.js`))
).default;
let filters = new (
await import(chrome.runtime.getURL(`scripts/filters.js`))
@ -79,7 +79,7 @@ function events(window) {
.addEventListener(`click`, async () => {
// Import the filters module.
let texts = (
await import(chrome.runtime.getURL(`gui/scripts/read.js`))
await import(chrome.runtime.getURL(`/scripts/strings/read.js`))
).default;
let filters = new (
await import(chrome.runtime.getURL(`scripts/filters.js`))