From f2102ade4cfe97be4182bb22d1ae4f609d2364a7 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Tue, 23 Nov 2021 22:23:14 -0500 Subject: Add AccessibilityController class, which dynamically registers (#2024) and unregisters the google-docs.js content script --- ext/js/background/backend.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/js/background') 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}); } -- cgit v1.2.3