correct theme selector expiry selection
This commit is contained in:
parent
a7ed8a0310
commit
7f2a80bbc8
|
@ -13,9 +13,9 @@ function currentThemeKey() {
|
||||||
|
|
||||||
export function selectDefaultTheme(key) {
|
export function selectDefaultTheme(key) {
|
||||||
if (key) {
|
if (key) {
|
||||||
$.cookie('preview_style', key);
|
$.cookie('preview_style', key, {path: '/', expires: 9999});
|
||||||
} else {
|
} else {
|
||||||
$.cookie('preview_style', null);
|
$.cookie('preview_style', null, {path: '/', expires: 1});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue