mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
correct theme selector expiry selection
This commit is contained in:
@@ -13,9 +13,9 @@ function currentThemeKey() {
|
||||
|
||||
export function selectDefaultTheme(key) {
|
||||
if (key) {
|
||||
$.cookie('preview_style', key);
|
||||
$.cookie('preview_style', key, {path: '/', expires: 9999});
|
||||
} else {
|
||||
$.cookie('preview_style', null);
|
||||
$.cookie('preview_style', null, {path: '/', expires: 1});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user