aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-09-08 14:49:00 -0400
committerGitHub <noreply@github.com>2021-09-08 14:49:00 -0400
commit6b566e032940482642fce9ab9a3a90c7ff49841c (patch)
tree3cdda50b6554aa995db120426f59bfad36cc29ef
parent9b86b5a56eba7a2bb08d4dedf1b597110f1f3ecd (diff)
Rename _onDocumentStart => _onApiDocumentStart for consistency (#1939)
-rw-r--r--ext/js/background/backend.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js
index 8e05ee68..b9e1f51b 100644
--- a/ext/js/background/backend.js
+++ b/ext/js/background/backend.js
@@ -125,7 +125,7 @@ class Backend {
['triggerDatabaseUpdated', {async: false, contentScript: true, handler: this._onApiTriggerDatabaseUpdated.bind(this)}],
['testMecab', {async: true, contentScript: true, handler: this._onApiTestMecab.bind(this)}],
['textHasJapaneseCharacters', {async: false, contentScript: true, handler: this._onApiTextHasJapaneseCharacters.bind(this)}],
- ['documentStart', {async: false, contentScript: true, handler: this._onDocumentStart.bind(this)}]
+ ['documentStart', {async: false, contentScript: true, handler: this._onApiDocumentStart.bind(this)}]
]);
this._messageHandlersWithProgress = new Map([
]);
@@ -742,7 +742,7 @@ class Backend {
return this._japaneseUtil.isStringPartiallyJapanese(text);
}
- _onDocumentStart(params, sender) {
+ _onApiDocumentStart(params, sender) {
const {tab, frameId, url} = sender;
if (typeof url !== 'string' || typeof tab !== 'object' || tab === null) { return; }
this._updateTabAccessibility(url, tab, frameId);