utils.js: use global.origin in cookieSet()
This commit is contained in:
parent
e44ae1ce9d
commit
3c3cf08656
@ -75,7 +75,7 @@
|
||||
expires = "; expires=" + date.toUTCString();
|
||||
|
||||
var cookieString = name + "=" + value + expires + "; path=/";
|
||||
if (/^https:\/\//i.test(origin)) {
|
||||
if (/^https:\/\//i.test(global.origin)) {
|
||||
cookieString += "; secure";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user