Test for truth
[ratchet] / lib / js / modals.js
index 6a0e6ef..4f1f40d 100644 (file)
@@ -23,9 +23,7 @@
 
   window.addEventListener('touchend', function (event) {
     var modal = getModal(event);
-
-    if (!modal) return; 
-    modal.classList.toggle('active');
+    if (modal) modal.classList.toggle('active');
   });
 
   window.addEventListener('click', function (event) {