Skip to content

Commit c685bb6

Browse files
committed
Simplify modal class check condition
1 parent b04f021 commit c685bb6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sqlpage/sqlpage.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,7 @@ function open_modal_for_hash() {
354354
const hash = window.location.hash.substring(1);
355355
if (!hash) return;
356356
const modal = document.getElementById(hash);
357-
const classes = modal.classList;
358-
if (!modal || !classes.contains("modal")) return;
357+
if (!modal || !modal.classList.contains("modal")) return;
359358
const bootstrap_modal =
360359
window.tabler.bootstrap.Modal.getOrCreateInstance(modal);
361360
bootstrap_modal.show();

0 commit comments

Comments
 (0)