From 65fa65fc7765bc9a6557d3ce6f8bdcef5b5e0cf7 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 18 Feb 2024 09:27:16 -0500 Subject: Application main updates (#708) * Move waitForBackendReady * Add option to wait for DOM before running main * Move script load to be earlier --- ext/js/display/popup-main.js | 2 +- ext/js/display/search-main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/js/display') diff --git a/ext/js/display/popup-main.js b/ext/js/display/popup-main.js index 8f92aaa8..fe1d20dd 100644 --- a/ext/js/display/popup-main.js +++ b/ext/js/display/popup-main.js @@ -25,7 +25,7 @@ import {DisplayProfileSelection} from './display-profile-selection.js'; import {DisplayResizer} from './display-resizer.js'; import {Display} from './display.js'; -await Application.main(async (application) => { +await Application.main(true, async (application) => { const documentFocusController = new DocumentFocusController(); documentFocusController.prepare(); diff --git a/ext/js/display/search-main.js b/ext/js/display/search-main.js index fd90ee0e..c3c292a1 100644 --- a/ext/js/display/search-main.js +++ b/ext/js/display/search-main.js @@ -26,7 +26,7 @@ import {SearchActionPopupController} from './search-action-popup-controller.js'; import {SearchDisplayController} from './search-display-controller.js'; import {SearchPersistentStateController} from './search-persistent-state-controller.js'; -await Application.main(async (application) => { +await Application.main(true, async (application) => { const documentFocusController = new DocumentFocusController('#search-textbox'); documentFocusController.prepare(); -- cgit v1.2.3