diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-05-15 15:11:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-15 15:11:42 -0400 |
commit | 8442a8ba22525f45bcbb81e162962f2c97e5d9dc (patch) | |
tree | bfe192c10392b0368e63c4095168a50e36249a12 /ext/js/display/search-main.js | |
parent | de6db32aa69be6c33d17ddb4f2dc4305e8771f59 (diff) |
Add SearchPersistentStateController (#1676)
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(); |