import modules properly
This commit is contained in:
parent
d71e9effd0
commit
2b24bf17b0
2 changed files with 11 additions and 15 deletions
|
@ -70,9 +70,6 @@ export default class logging {
|
|||
@param {boolean} critical the critical nature
|
||||
*/
|
||||
static async error(ERROR_CODE, ERROR_MESSAGE, ERROR_STACK, critical = true) {
|
||||
// Import the templating.
|
||||
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]));
|
||||
if (critical) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue