aboutsummaryrefslogtreecommitdiff
path: root/ext/js/core.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/core.js')
-rw-r--r--ext/js/core.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/js/core.js b/ext/js/core.js
index 5c03b44b..14d0ef56 100644
--- a/ext/js/core.js
+++ b/ext/js/core.js
@@ -727,6 +727,7 @@ export class Logger extends EventDispatcher {
}
message += '\n\nIssues can be reported at https://github.com/themoeway/yomitan/issues';
+ /* eslint-disable no-console */
switch (level) {
case 'info': console.info(message); break;
case 'debug': console.debug(message); break;
@@ -734,6 +735,7 @@ export class Logger extends EventDispatcher {
case 'error': console.error(message); break;
default: console.log(message); break;
}
+ /* eslint-enable no-console */
this.trigger('log', {error, level, context});
}