diff options
Diffstat (limited to 'ext/js/display/search-main.js')
-rw-r--r-- | ext/js/display/search-main.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/js/display/search-main.js b/ext/js/display/search-main.js index 056d4788..04886bc8 100644 --- a/ext/js/display/search-main.js +++ b/ext/js/display/search-main.js @@ -21,6 +21,7 @@ * HotkeyHandler * JapaneseUtil * SearchDisplayController + * SearchPersistentStateController * wanakana */ @@ -29,6 +30,9 @@ const documentFocusController = new DocumentFocusController('#search-textbox'); documentFocusController.prepare(); + const searchPersistentStateController = new SearchPersistentStateController(); + searchPersistentStateController.prepare(); + await yomichan.prepare(); const {tabId, frameId} = await yomichan.api.frameInformationGet(); @@ -41,7 +45,7 @@ const display = new Display(tabId, frameId, 'search', japaneseUtil, documentFocusController, hotkeyHandler); await display.prepare(); - const searchDisplayController = new SearchDisplayController(tabId, frameId, display, japaneseUtil); + const searchDisplayController = new SearchDisplayController(tabId, frameId, display, japaneseUtil, searchPersistentStateController); await searchDisplayController.prepare(); display.initializeState(); |