aboutsummaryrefslogtreecommitdiff
path: root/ext/js/display
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/display')
-rw-r--r--ext/js/display/popup-main.js7
-rw-r--r--ext/js/display/search-main.js7
2 files changed, 10 insertions, 4 deletions
diff --git a/ext/js/display/popup-main.js b/ext/js/display/popup-main.js
index 6b07b63f..fdb95508 100644
--- a/ext/js/display/popup-main.js
+++ b/ext/js/display/popup-main.js
@@ -27,7 +27,8 @@ import {DisplayProfileSelection} from './display-profile-selection.js';
import {DisplayResizer} from './display-resizer.js';
import {Display} from './display.js';
-(async () => {
+/** Entry point. */
+async function main() {
try {
const documentFocusController = new DocumentFocusController();
documentFocusController.prepare();
@@ -64,4 +65,6 @@ import {Display} from './display.js';
} catch (e) {
log.error(e);
}
-})();
+}
+
+await main();
diff --git a/ext/js/display/search-main.js b/ext/js/display/search-main.js
index 5eee08d1..fae7306a 100644
--- a/ext/js/display/search-main.js
+++ b/ext/js/display/search-main.js
@@ -29,7 +29,8 @@ import {SearchActionPopupController} from './search-action-popup-controller.js';
import {SearchDisplayController} from './search-display-controller.js';
import {SearchPersistentStateController} from './search-persistent-state-controller.js';
-(async () => {
+/** Entry point. */
+async function main() {
try {
const documentFocusController = new DocumentFocusController('#search-textbox');
documentFocusController.prepare();
@@ -69,4 +70,6 @@ import {SearchPersistentStateController} from './search-persistent-state-control
} catch (e) {
log.error(e);
}
-})();
+}
+
+await main();