Fix Uncaught ReferenceError: secure is not defined
This commit is contained in:
parent
716ac1132f
commit
7662e097ce
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "tarteaucitronjs",
|
"name": "tarteaucitronjs",
|
||||||
"version": "1.4.0",
|
"version": "1.5.0",
|
||||||
"description": "Comply to the European cookie law",
|
"description": "Comply to the European cookie law",
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"devDependencies": {},
|
"devDependencies": {},
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
"gdpr",
|
"gdpr",
|
||||||
"cookie"
|
"cookie"
|
||||||
],
|
],
|
||||||
"author": "AIC Agency SAS",
|
"author": "Amauri.IO",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/AmauriC/tarteaucitron.js/issues"
|
"url": "https://github.com/AmauriC/tarteaucitron.js/issues"
|
||||||
|
|
|
||||||
|
|
@ -1290,7 +1290,7 @@ var tarteaucitron = {
|
||||||
regex = new RegExp("!" + key + "=(wait|true|false)", "g"),
|
regex = new RegExp("!" + key + "=(wait|true|false)", "g"),
|
||||||
cookie = tarteaucitron.cookie.read().replace(regex, ""),
|
cookie = tarteaucitron.cookie.read().replace(regex, ""),
|
||||||
value = tarteaucitron.parameters.cookieName + '=' + cookie + '!' + key + '=' + status,
|
value = tarteaucitron.parameters.cookieName + '=' + cookie + '!' + key + '=' + status,
|
||||||
domain = (tarteaucitron.parameters.cookieDomain !== undefined && tarteaucitron.parameters.cookieDomain !== '') ? '; domain=' + tarteaucitron.parameters.cookieDomain : '';
|
domain = (tarteaucitron.parameters.cookieDomain !== undefined && tarteaucitron.parameters.cookieDomain !== '') ? '; domain=' + tarteaucitron.parameters.cookieDomain : '',
|
||||||
secure = location.protocol === 'https:' ? '; Secure' : '';
|
secure = location.protocol === 'https:' ? '; Secure' : '';
|
||||||
|
|
||||||
d.setTime(expireTime);
|
d.setTime(expireTime);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue