From 5d8228327cdbfaf814c4e8305c600b43c198dc7f Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 18 Apr 2020 16:55:15 +0200 Subject: [PATCH] fixed exception on site change --- scripts/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');