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) {
|
||||
var expires = exdate ? `expires=${exdate};` : "";
|
||||
document.cookie = `${cname}=${cvalue};${expires}path=/`
|
||||
var expires = exdate ? `;expires=${exdate}` : "";
|
||||
document.cookie = `${cname}=${cvalue}${expires}`
|
||||
}
|
||||
|
||||
export function getCookie(cname) {
|
||||
|
Loading…
Reference in New Issue
Block a user