Commit 98875334dade3d82e196503d21dae241058b2a35
persist "none" theme if set
Dominic Tarr committed on 10/25/2016, 1:15:53 PMParent: 1695b03758638d03b6a1920872fefb8315120b24
Files changed
modules/theme.js | changed |
modules/theme.js | |||
---|---|---|---|
@@ -29,9 +29,10 @@ | |||
29 | 29 … | }) | |
30 | 30 … | } | |
31 | 31 … | ||
32 | 32 … | function useSavedTheme() { | |
33 | - useTheme(localStorage.themeId || defaultTheme.id) | ||
33 … | + //enable setting "NONE" as your theme, and having that persist. | ||
34 … | + useTheme(localStorage.themeId == null ? defaultTheme.id : localStorage.themeId) | ||
34 | 35 … | } | |
35 | 36 … | ||
36 | 37 … | next(useSavedTheme) | |
37 | 38 … | ||
Built with git-ssb-web