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
2828 html.classList.toggle('_theme-default')
2929 html.classList.toggle('_theme-dark')
3030 app.settings.set('dark', !!enable)
31+ app.appCache?.updateInBackground()
3132 return
3233
3334 toggleLayout: (layout, enable) ->