Fixing bug on chrome with path
This commit is contained in:
parent
23733b1661
commit
aa47e6c92f
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user