mirror of
https://gitlab.com/commento/commento.git
synced 2026-11-01 01:16:21 -05:00
utils.js: use global.origin in cookieSet()
This commit is contained in:
1 parent
e44ae1ce9d
commit
3c3cf08656
1 file changed
+1
-1
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user