dresscode-bricks
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -10,5 +10,5 @@ Bricks.Cookie = {}; | ||
* @param {Number} [days] Количество дней, на которое ставится кука. | ||
* @param {String} [path] Путь на сайте, для которого кука актуальна. | ||
* @param {String} [domain] Домен, для которого кука актуальна. | ||
*/ | ||
Bricks.Cookie.createCookie = function(name, value, days, path) { | ||
Bricks.Cookie.createCookie = function(name, value, days, domain) { | ||
var expires = ''; | ||
@@ -20,3 +20,4 @@ if (days) { | ||
} | ||
document.cookie = name + '=' + value + expires + ';path=' + (path || '/'); | ||
var domainParam = domain ? ';domain=' + domain : ''; | ||
document.cookie = name + '=' + value + expires + domainParam + ';path=/'; | ||
}; | ||
@@ -23,0 +24,0 @@ //#endlabel createCookie |
{ | ||
"name": "dresscode-bricks", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Kolyaj", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
129719
3168