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

@ -64,7 +64,7 @@ export default class logging {
*/
static async error(ERROR_CODE, ERROR_MESSAGE, ERROR_STACK, critical = true) {
// Import the templating.
const texts = (await import(chrome.runtime.getURL("gui/scripts/read.js"))).default;
const texts = (await import(chrome.runtime.getURL("/scripts/strings/read.js"))).default;
// Display the error message.
console.error(texts.localized(`error_msg`, false, [ERROR_CODE, ERROR_MESSAGE, ERROR_STACK]));