Skip to content

Commit 377407c

Browse files
authored
Bug fix
Signed-off-by: Faisal N <contact@faisaln.com>
1 parent 0c08b0a commit 377407c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/modules/ui.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ export function show(dialog, title, buttons, actions, blur, effects = true) {
256256
export function view(path) {
257257
if (!path) {
258258
const event = new Event("triggerclose");
259-
document.querySelector("dialog[open]").dispatchEvent(event);
259+
document.querySelector("dialog[open]")?.dispatchEvent(event);
260260
return;
261261
}
262262
const pages = path.split("/");
@@ -609,4 +609,4 @@ export function startLoader() {
609609
export function stopLoader() {
610610
const loader = document.getElementById("loader");
611611
if (loader) loader.classList.remove("active");
612-
}
612+
}

0 commit comments

Comments
 (0)