utils.js: use global.origin in cookieSet()

This commit is contained in:
Wouter Groeneveld 2020-05-09 23:53:42 +00:00 committed by Adhityaa Chandrasekar
parent e44ae1ce9d
commit 3c3cf08656

View File

@ -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";
}