Skip to content
Browse files

Fixed JS syntax errors on cookiePath

Currrently, if the cookiePath is null as per the configuration, we get a SyntaxError ("Unexpected token }" or "expected expression, got '}'" depending on the browser) and if it is defined (to '/' for example as in the doc) we have another SyntaxError ("invalid escape sequence" or "Invalid or unexpected token" depending on the browser). Simply escaping the value solves both cases for me.
  • Loading branch information...
amauryvallier committed May 28, 2018
1 parent cf326a7 commit e20dfbeafb326b06639ed9ceb3f57d864e1a87e9
Showing with 1 addition and 1 deletion.
  1. +1 −1 Resources/views/privacycookie.html.twig
@@ -21,7 +21,7 @@
var privacyCookieBanner = new eZ.PrivacyCookieBanner({
cookieName: '{{ cookieName }}',
days: {{ cookieValidity }},
path: {{ cookiePath }}
path: '{{ cookiePath }}'
setTimeout(function () {

0 comments on commit e20dfbe

Please sign in to comment.
You can’t perform that action at this time.