aboutsummaryrefslogtreecommitdiff
path: root/ext/js/display
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/display')
-rw-r--r--ext/js/display/display.js6
-rw-r--r--ext/js/display/popup-main.js2
-rw-r--r--ext/js/display/query-parser.js2
-rw-r--r--ext/js/display/search-main.js2
4 files changed, 6 insertions, 6 deletions
diff --git a/ext/js/display/display.js b/ext/js/display/display.js
index 553c17e7..b7477bb8 100644
--- a/ext/js/display/display.js
+++ b/ext/js/display/display.js
@@ -272,7 +272,7 @@ class Display extends EventDispatcher {
onError(error) {
if (yomichan.isExtensionUnloaded) { return; }
- yomichan.logError(error);
+ log.error(error);
}
getOptions() {
@@ -1552,7 +1552,7 @@ class Display extends EventDispatcher {
}
await this._frontendSetupPromise;
} catch (e) {
- yomichan.logError(e);
+ log.error(e);
return;
} finally {
this._frontendSetupPromise = null;
@@ -1721,7 +1721,7 @@ class Display extends EventDispatcher {
_onDefinitionTextScannerSearched({type, definitions, sentence, textSource, optionsContext, error}) {
if (error !== null && !yomichan.isExtensionUnloaded) {
- yomichan.logError(error);
+ log.error(error);
}
if (type === null) { return; }
diff --git a/ext/js/display/popup-main.js b/ext/js/display/popup-main.js
index 24be6c01..55f19984 100644
--- a/ext/js/display/popup-main.js
+++ b/ext/js/display/popup-main.js
@@ -49,6 +49,6 @@
yomichan.ready();
} catch (e) {
- yomichan.logError(e);
+ log.error(e);
}
})();
diff --git a/ext/js/display/query-parser.js b/ext/js/display/query-parser.js
index 29401657..d6a3b4da 100644
--- a/ext/js/display/query-parser.js
+++ b/ext/js/display/query-parser.js
@@ -89,7 +89,7 @@ class QueryParser extends EventDispatcher {
_onSearched(e) {
const {error} = e;
if (error !== null) {
- yomichan.logError(error);
+ log.error(error);
return;
}
if (e.type === null) { return; }
diff --git a/ext/js/display/search-main.js b/ext/js/display/search-main.js
index 08645833..5ad50500 100644
--- a/ext/js/display/search-main.js
+++ b/ext/js/display/search-main.js
@@ -50,6 +50,6 @@
yomichan.ready();
} catch (e) {
- yomichan.logError(e);
+ log.error(e);
}
})();