From 85de75ebb396a66dbe065fd4e63c07b8d91f6198 Mon Sep 17 00:00:00 2001 From: Jurie-Jan Botha Date: Tue, 21 Apr 2015 11:03:53 +0200 Subject: [PATCH] Added else if for future error prevention --- js/modals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/modals.js b/js/modals.js index 4e1e89f..92abf97 100644 --- a/js/modals.js +++ b/js/modals.js @@ -37,7 +37,7 @@ if (modalSelector) { return document.querySelector(modalSelector); } - if (modalToggle.hash) { + else if (modalToggle.hash) { try { return document.querySelector(modalToggle.hash); }