Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
khaitruong922 committed Sep 30, 2024
1 parent 2f6da4a commit c312b96
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ext/js/display/search-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion ext/js/pages/permissions-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions ext/js/pages/settings/modal-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {Modal} from './modal.js';

export class ModalController {
/**
* @param {string[]|undefined} templateNames
* @param {string[]} templateNames
*/
constructor(templateNames) {
/** @type {Modal[]} */
Expand All @@ -31,7 +31,7 @@ export class ModalController {
/** @type {HtmlTemplateCollection} */
this._templates = new HtmlTemplateCollection();
/** @type {string[]} */
this._templateNames = templateNames ?? [];
this._templateNames = templateNames;
}

/** */
Expand Down

0 comments on commit c312b96

Please sign in to comment.