Adapt JS for modular usage
This commit is contained in:
1 parent
118f348c9e
commit
951f29b9a5
1 file changed
+2
-2
+2
-2
@@ -50,8 +50,8 @@ for (let i = 0; i < testimonialsItem.length; i++) {
|
||||
}
|
||||
|
||||
// add click event to modal close button
|
||||
modalCloseBtn.addEventListener("click", testimonialsModalFunc);
|
||||
overlay.addEventListener("click", testimonialsModalFunc);
|
||||
if (modalCloseBtn) modalCloseBtn.addEventListener("click", testimonialsModalFunc);
|
||||
if (overlay) overlay.addEventListener("click", testimonialsModalFunc);
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user