From c312b96ba5adec448f7c51ffe73e682f48899354 Mon Sep 17 00:00:00 2001 From: Khai Truong Date: Mon, 30 Sep 2024 20:43:29 +0700 Subject: [PATCH] lint --- ext/js/display/search-main.js | 2 +- ext/js/pages/permissions-main.js | 2 +- ext/js/pages/settings/modal-controller.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/js/display/search-main.js b/ext/js/display/search-main.js index 03cd663f9e..377953f68f 100644 --- a/ext/js/display/search-main.js +++ b/ext/js/display/search-main.js @@ -54,7 +54,7 @@ await Application.main(true, async (application) => { const searchDisplayController = new SearchDisplayController(display, displayAudio, searchPersistentStateController); await searchDisplayController.prepare(); - const modalController = new ModalController(); + const modalController = new ModalController([]); await modalController.prepare(); const settingsController = new SettingsController(application); diff --git a/ext/js/pages/permissions-main.js b/ext/js/pages/permissions-main.js index 52f66c45ba..cc31f8d6ba 100644 --- a/ext/js/pages/permissions-main.js +++ b/ext/js/pages/permissions-main.js @@ -87,7 +87,7 @@ function setupPermissionsToggles() { } await Application.main(true, async (application) => { - const modalController = new ModalController(); + const modalController = new ModalController([]); await modalController.prepare(); const settingsController = new SettingsController(application); diff --git a/ext/js/pages/settings/modal-controller.js b/ext/js/pages/settings/modal-controller.js index 6f4561c21c..fb3a0dbc14 100644 --- a/ext/js/pages/settings/modal-controller.js +++ b/ext/js/pages/settings/modal-controller.js @@ -21,7 +21,7 @@ import {Modal} from './modal.js'; export class ModalController { /** - * @param {string[]|undefined} templateNames + * @param {string[]} templateNames */ constructor(templateNames) { /** @type {Modal[]} */ @@ -31,7 +31,7 @@ export class ModalController { /** @type {HtmlTemplateCollection} */ this._templates = new HtmlTemplateCollection(); /** @type {string[]} */ - this._templateNames = templateNames ?? []; + this._templateNames = templateNames; } /** */