diff options
Diffstat (limited to 'ext/fg/js/float-main.js')
-rw-r--r-- | ext/fg/js/float-main.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/fg/js/float-main.js b/ext/fg/js/float-main.js index a8554867..aee736a2 100644 --- a/ext/fg/js/float-main.js +++ b/ext/fg/js/float-main.js @@ -17,17 +17,21 @@ /* global * Display + * DocumentFocusController * JapaneseUtil * api */ (async () => { try { + const documentFocusController = new DocumentFocusController(); + documentFocusController.prepare(); + api.forwardLogsToBackend(); await yomichan.backendReady(); const japaneseUtil = new JapaneseUtil(null); - const display = new Display('popup', japaneseUtil); + const display = new Display('popup', japaneseUtil, documentFocusController); await display.prepare(); display.initializeState(); |