aboutsummaryrefslogtreecommitdiff
path: root/ext/js/background
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-11-23 22:23:14 -0500
committerGitHub <noreply@github.com>2021-11-23 22:23:14 -0500
commitf2102ade4cfe97be4182bb22d1ae4f609d2364a7 (patch)
tree6df6e9ceb41723af1fc9e032a60129be6ba0827c /ext/js/background
parentd454b52a18127f782fafdf71534ea2c41f20ef44 (diff)
Add AccessibilityController class, which dynamically registers (#2024)
and unregisters the google-docs.js content script
Diffstat (limited to 'ext/js/background')
-rw-r--r--ext/js/background/backend.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js
index 4e86a23c..f8424e80 100644
--- a/ext/js/background/backend.js
+++ b/ext/js/background/backend.js
@@ -16,6 +16,7 @@
*/
/* global
+ * AccessibilityController
* AnkiConnect
* AnkiUtil
* AudioDownloader
@@ -69,6 +70,7 @@ class Backend {
});
this._optionsUtil = new OptionsUtil();
this._scriptManager = new ScriptManager();
+ this._accessibilityController = new AccessibilityController(this._scriptManager);
this._searchPopupTabId = null;
this._searchPopupTabCreatePromise = null;
@@ -988,6 +990,8 @@ class Backend {
this._clipboardMonitor.stop();
}
+ this._accessibilityController.update(this._getOptionsFull(false));
+
this._sendMessageAllTabsIgnoreResponse('Yomichan.optionsUpdated', {source});
}