Fixing bug on chrome with path

This commit is contained in:
Fabian Stamm 2019-02-24 03:51:40 +01:00
parent 23733b1661
commit aa47e6c92f

View File

@ -1,6 +1,6 @@
export function setCookie(cname, cvalue, exdate) { export function setCookie(cname, cvalue, exdate) {
var expires = exdate ? `expires=${exdate};` : ""; var expires = exdate ? `;expires=${exdate}` : "";
document.cookie = `${cname}=${cvalue};${expires}path=/` document.cookie = `${cname}=${cvalue}${expires}`
} }
export function getCookie(cname) { export function getCookie(cname) {