-
Notifications
You must be signed in to change notification settings - Fork 756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cookie Consent may cause JavaScript error #4762
Comments
@bdukes Great one! Do you know of a workaround until it is released? How do I request dnn.js for instance? |
@Tychodewaard I added this to a control that was included in all of the theme controls:
|
Yeah, I created a work around in the past as well, involving registry of a component in the theme. |
I would think just including |
I tried <script src="/js/dnn.js"></script> |
Description of bug
DNN's cookie consent script uses
dnn.getVar
to read its options. However, it does not ensure thatdnn.js
is included on the page, so in scenarios where nothing else on the page requestsdnn.js
the functionality will fail.Steps to reproduce
Affected version
The text was updated successfully, but these errors were encountered: