Closed mokorana closed 2 years ago
Hi, cookie-consent-js
has no file scripts.js
.
Yes, you are right. I just loaded your script as a module in my own scripts.js. Because I use strict mode, the error was displayed. I can deal with this by myself. I just wanted to let you know.
Okay, nice, but what exactly is the error? :)
Problem is that this
is undefined in hideDialog()
and showDialog()
. As a simple fix you could use window.modal
instead.
Fixed. Thanks for reporting!
Uncaught TypeError: Cannot set property 'modal' of undefined at scripts.js:123