Skip to content

Commit cddc4db

Browse files
committed
Fire JS on DOMContentLoaded
1 parent 49a0d96 commit cddc4db

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

resources/js/cookiepanel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(function(){
1+
window.addEventListener('DOMContentLoaded', function(){
22

33
// Detect if user is on IE browser
44
var isIE = !!window.MSInputMethodContext && !!document.documentMode;
@@ -83,4 +83,4 @@
8383
cookiePanel.addEventListener('click', clickAndInputHandler);
8484
}
8585

86-
}());
86+
});

0 commit comments

Comments
 (0)