fixed exception on site change

This commit is contained in:
Ellpeck 2020-04-18 16:55:15 +02:00
parent 299bb15b4d
commit 5d8228327c
1 changed files with 1 additions and 1 deletions

View File

@ -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');