From 7f2a80bbc8cd089d0d7c0f36142e04312faa4155 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 12 Apr 2017 11:59:47 -0400 Subject: [PATCH] correct theme selector expiry selection --- app/assets/javascripts/discourse/lib/theme-selector.js.es6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/lib/theme-selector.js.es6 b/app/assets/javascripts/discourse/lib/theme-selector.js.es6 index de7a81daf93..295f8664dd6 100644 --- a/app/assets/javascripts/discourse/lib/theme-selector.js.es6 +++ b/app/assets/javascripts/discourse/lib/theme-selector.js.es6 @@ -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}); } }