diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2024-02-18 09:27:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-18 14:27:16 +0000 |
commit | 65fa65fc7765bc9a6557d3ce6f8bdcef5b5e0cf7 (patch) | |
tree | 4e91bc8ec3e0dadbabe3e3d4c6c92d2b6f9fd2a5 /ext/js/pages | |
parent | cfc65c31313731dfa0d36c2eceaca35e9d50992f (diff) |
Application main updates (#708)
* Move waitForBackendReady
* Add option to wait for DOM before running main
* Move script load to be earlier
Diffstat (limited to 'ext/js/pages')
-rw-r--r-- | ext/js/pages/action-popup-main.js | 2 | ||||
-rw-r--r-- | ext/js/pages/info-main.js | 2 | ||||
-rw-r--r-- | ext/js/pages/permissions-main.js | 2 | ||||
-rw-r--r-- | ext/js/pages/settings/popup-preview-frame-main.js | 2 | ||||
-rw-r--r-- | ext/js/pages/settings/settings-main.js | 2 | ||||
-rw-r--r-- | ext/js/pages/welcome-main.js | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/ext/js/pages/action-popup-main.js b/ext/js/pages/action-popup-main.js index f58083a7..0a14c669 100644 --- a/ext/js/pages/action-popup-main.js +++ b/ext/js/pages/action-popup-main.js @@ -306,7 +306,7 @@ class DisplayController { } } -await Application.main(async (application) => { +await Application.main(true, async (application) => { application.api.logIndicatorClear(); const displayController = new DisplayController(application.api); diff --git a/ext/js/pages/info-main.js b/ext/js/pages/info-main.js index 0bc84d97..dda1c4e2 100644 --- a/ext/js/pages/info-main.js +++ b/ext/js/pages/info-main.js @@ -115,7 +115,7 @@ async function showDictionaryInfo(api) { container.appendChild(fragment); } -await Application.main(async (application) => { +await Application.main(true, async (application) => { const documentFocusController = new DocumentFocusController(); documentFocusController.prepare(); diff --git a/ext/js/pages/permissions-main.js b/ext/js/pages/permissions-main.js index 3be97b78..40dbceb2 100644 --- a/ext/js/pages/permissions-main.js +++ b/ext/js/pages/permissions-main.js @@ -86,7 +86,7 @@ function setupPermissionsToggles() { } } -await Application.main(async (application) => { +await Application.main(true, async (application) => { const documentFocusController = new DocumentFocusController(); documentFocusController.prepare(); diff --git a/ext/js/pages/settings/popup-preview-frame-main.js b/ext/js/pages/settings/popup-preview-frame-main.js index c6c694cd..978b102e 100644 --- a/ext/js/pages/settings/popup-preview-frame-main.js +++ b/ext/js/pages/settings/popup-preview-frame-main.js @@ -21,7 +21,7 @@ import {Application} from '../../application.js'; import {HotkeyHandler} from '../../input/hotkey-handler.js'; import {PopupPreviewFrame} from './popup-preview-frame.js'; -await Application.main(async (application) => { +await Application.main(true, async (application) => { const hotkeyHandler = new HotkeyHandler(); hotkeyHandler.prepare(application.crossFrame); diff --git a/ext/js/pages/settings/settings-main.js b/ext/js/pages/settings/settings-main.js index 0b115246..82fc91a5 100644 --- a/ext/js/pages/settings/settings-main.js +++ b/ext/js/pages/settings/settings-main.js @@ -58,7 +58,7 @@ async function setupGenericSettingController(genericSettingController) { await genericSettingController.refresh(); } -await Application.main(async (application) => { +await Application.main(true, async (application) => { const documentFocusController = new DocumentFocusController(); documentFocusController.prepare(); diff --git a/ext/js/pages/welcome-main.js b/ext/js/pages/welcome-main.js index 9990b4e7..d1d1a6b2 100644 --- a/ext/js/pages/welcome-main.js +++ b/ext/js/pages/welcome-main.js @@ -49,7 +49,7 @@ async function setupGenericSettingsController(genericSettingController) { await genericSettingController.refresh(); } -await Application.main(async (application) => { +await Application.main(true, async (application) => { const documentFocusController = new DocumentFocusController(); documentFocusController.prepare(); |