From 9279ced68660610764931da681f22c8b71bf1b6e Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 14 Feb 2021 17:52:01 -0500 Subject: Log refactoring (#1393) * Create Logger class and log instance * Replace yomichan.logWarning with log.warn * Replace yomichan.logError with log.error * Replace yomichan.log with log.log * Update the Yomichan class to use the global log object * Update lint rules --- ext/js/settings/pitch-accents-preview-main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/js/settings/pitch-accents-preview-main.js') diff --git a/ext/js/settings/pitch-accents-preview-main.js b/ext/js/settings/pitch-accents-preview-main.js index fe3bd36d..d9d56727 100644 --- a/ext/js/settings/pitch-accents-preview-main.js +++ b/ext/js/settings/pitch-accents-preview-main.js @@ -30,6 +30,6 @@ await displayGenerator.prepare(); displayGenerator.preparePitchAccents(); } catch (e) { - yomichan.logError(e); + log.error(e); } })(); -- cgit v1.2.3