This is needed because the index page is part of the app cache, and the <html> tag has a different class depending on the theme.
Showing the changes to assets/javascripts (1 of 3 files). Show all
Unified · Split
| @@ -28,6 +28,7 @@ class app.views.SettingsPage extends app.View · 27 unmodified lines | |||
| 28 | html.classList.toggle('_theme-default') | 28 | html.classList.toggle('_theme-default') |
| 29 | html.classList.toggle('_theme-dark') | 29 | html.classList.toggle('_theme-dark') |
| 30 | app.settings.set('dark', !!enable) | 30 | app.settings.set('dark', !!enable) |
| 31 | app.appCache?.updateInBackground() | ||
| 31 | return | 32 | return |
| 32 | 33 | ||
| 33 | toggleLayout: (layout, enable) -> | 34 | toggleLayout: (layout, enable) -> |