Skip to content

Commit d9d728d

Browse files
Merge pull request #86 from stanisllav/main
Update event listener to use DOMContentLoaded
2 parents 5a5fe0c + 2725d56 commit d9d728d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/js/Cookies.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,6 @@ class LaravelCookieConsent {
8484
}
8585
}
8686

87-
window.addEventListener('load', () => {
87+
window.addEventListener('DOMContentLoaded', () => {
8888
window.LaravelCookieConsent = new LaravelCookieConsent({ config: 1 });
8989
});

0 commit comments

Comments
 (0)