diff --git a/scripts/main.js b/scripts/main.js index 0efdd3a..d06306d 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -10,7 +10,7 @@ if (pride) $(function () { let openModals = function (hash) { - if (hash && hash.length > 1) { + if (hash && hash.startsWith("#")) { let modal = $(`${hash}-modal`); if (modal.length) modal.modal('show');