From 6a15b7b698cbff95ff663636a67079f72b27b7cf Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 4 Mar 2019 09:20:08 +0100 Subject: [PATCH] fix default theme --- src/app/ui/styles-guide/theme-chooser.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/ui/styles-guide/theme-chooser.js b/src/app/ui/styles-guide/theme-chooser.js index f349721645..d34ec1441e 100644 --- a/src/app/ui/styles-guide/theme-chooser.js +++ b/src/app/ui/styles-guide/theme-chooser.js @@ -41,6 +41,7 @@ module.exports = { else { theme = themeStorage.get('theme') } + if (!theme) theme = 'light' if (themes[theme]) { document.getElementById('theme-link').setAttribute('href', themes[theme]) document.documentElement.style.setProperty('--theme', themeVariable[theme])