changed alerts to the logging

This commit is contained in:
buzz-lightsnack-2007 2024-04-15 15:42:50 +08:00
parent 35e208b61d
commit 527d7b6835
7 changed files with 24 additions and 24 deletions

View file

@ -15,7 +15,7 @@ export default class net {
static async download(URL, TYPE, VERIFY_ONLY = false, STRICT = false) {
const texts = (await import(chrome.runtime.getURL(`gui/scripts/read.js`)))
.default;
const alerts = (await import(chrome.runtime.getURL(`gui/scripts/alerts.js`))).default;
const logging = (await import(chrome.runtime.getURL(`gui/scripts/logging.js`))).default;
let CONNECT, DATA;
@ -38,7 +38,7 @@ export default class net {
// Should not allow the data to be returned since it's not correct.
DATA = null;
throw new TypeError(texts.localized(`error_msg_notJSON`, false));
} else {alerts.warn(texts.localized(`error_msg_notJSON`, false));}
} else {logging.warn(texts.localized(`error_msg_notJSON`, false));}
};
};
}