You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With 'DISABLE_WRAPPER': Falseon pipeline configuration, all works as expected.
The text was updated successfully, but these errors were encountered:
cydvd
changed the title
"Uncaught ReferenceError: Cookielaw is not defined" when javascript is wrapped in an anonimous function
"Uncaught ReferenceError: Cookielaw is not defined" with django-pipeline javascript wrapper enabled
Nov 18, 2016
Using django-pipeline for static compression, all javascript output is wrapped in an anonymous function, as security measure.
The click on button I agree fire
Cookielaw.createCookielawCookie();
and generate the exceptionUncaught ReferenceError: Cookielaw is not defined(…)
A chunk of the generated code:
With
'DISABLE_WRAPPER': False
on pipeline configuration, all works as expected.The text was updated successfully, but these errors were encountered: