diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2023-12-10 19:21:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-11 00:21:14 +0000 |
commit | e9dde826df738c4094709804d72de4991b377a8a (patch) | |
tree | 22e20851ea92868e29e0afe70e745fcc306661b1 /ext/js/core.js | |
parent | a6c57cc4d7ffeff16320e1d27280ac752fb80e21 (diff) |
Change no-console to error, only for ext files (#352)
Diffstat (limited to 'ext/js/core.js')
-rw-r--r-- | ext/js/core.js | 2 |
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}); } |