correct theme selector expiry selection

This commit is contained in:
Sam 2017-04-12 11:59:47 -04:00
parent a7ed8a0310
commit 7f2a80bbc8
1 changed files with 2 additions and 2 deletions

View File

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