History

Fix app cache not updating when changing the app's color theme

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.

Thibaut Courouble committed 8 years ago

Commit e8d52c91 parent d72de333 files · +15 −1Browse files

Showing the changes to assets/javascripts (1 of 3 files). Show all

Unified · Split

assets/javascripts/views/content/settings_page.coffee+1−0
@@ -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 return32 return
32 33
33 toggleLayout: (layout, enable) ->34 toggleLayout: (layout, enable) ->