eu-cookie-law error on Customizer
-
When using the WordPress Customizer I am getting this error in the Chrome Inspector Tools:
Uncaught TypeError: Cannot read property 'classList' of null at eu-cookie-law.min.js:2 at eu-cookie-law.min.js:2
It is the Jetpack eu-cookie-law because this is the full source:
https://c0.wp.com/p/jetpack/8.5/_inc/build/widgets/eu-cookie-law/eu-cookie-law.min.jsThe offending object is “n” which is set to “getElementById(‘eu-cookie-law’)”.
I believe there should be a check for existence of the element:if(n !== null && n.hasOwnProperty('classList'){ ... }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘eu-cookie-law error on Customizer’ is closed to new replies.