diff options
Diffstat (limited to 'ext/bg/js/search-main.js')
-rw-r--r-- | ext/bg/js/search-main.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/bg/js/search-main.js b/ext/bg/js/search-main.js index f98028b3..4bcf14e8 100644 --- a/ext/bg/js/search-main.js +++ b/ext/bg/js/search-main.js @@ -17,6 +17,7 @@ /* global * DisplaySearch + * DocumentFocusController * JapaneseUtil * api * wanakana @@ -24,11 +25,14 @@ (async () => { try { + const documentFocusController = new DocumentFocusController(); + documentFocusController.prepare(); + api.forwardLogsToBackend(); await yomichan.backendReady(); const japaneseUtil = new JapaneseUtil(wanakana); - const displaySearch = new DisplaySearch(japaneseUtil); + const displaySearch = new DisplaySearch(japaneseUtil, documentFocusController); await displaySearch.prepare(); document.documentElement.dataset.loaded = 'true'; |