aboutsummaryrefslogtreecommitdiff
path: root/ext/js/display/search-main.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/display/search-main.js')
-rw-r--r--ext/js/display/search-main.js7
1 files changed, 5 insertions, 2 deletions
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();