From 1c5e3e6d397f22de99494e147cc53b106e1d16b4 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Thu, 11 Feb 2021 22:57:38 -0500 Subject: Search decouple (#1369) * Update how query post-processing is implemented * Update DisplaySearch to not subclass Display * Update display construction * Make display initialization consistent * Remove unused * Fix wanakana binding * Use own frame/tab ID * DisplaySearch => SearchDisplayController * Fix globals --- ext/fg/js/float-main.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/fg') diff --git a/ext/fg/js/float-main.js b/ext/fg/js/float-main.js index efc012d7..7c048b62 100644 --- a/ext/fg/js/float-main.js +++ b/ext/fg/js/float-main.js @@ -41,10 +41,14 @@ const display = new Display(tabId, frameId, 'popup', japaneseUtil, documentFocusController, hotkeyHandler); await display.prepare(); + const displayProfileSelection = new DisplayProfileSelection(display); displayProfileSelection.prepare(); + display.initializeState(); + document.documentElement.dataset.loaded = 'true'; + yomichan.ready(); } catch (e) { yomichan.logError(e); -- cgit v1.2.3