Re-factoring

pull/1022/head
Jasper van Merle 6 years ago
parent ba46b7841b
commit dff5675a0c

@ -120,7 +120,8 @@ class app.Settings
classList = document.documentElement.classList classList = document.documentElement.classList
classList.toggle('_theme-default', !enable) classList.toggle('_theme-default', !enable)
classList.toggle('_theme-dark', enable) classList.toggle('_theme-dark', enable)
$('meta[name=theme-color]').setAttribute('content', if enable then '#1c1c1c' else '#eee') color = getComputedStyle(document.documentElement).getPropertyValue('--headerBackground').trim()
$('meta[name=theme-color]').setAttribute('content', color)
return return
toggleLayout: (layout, enable) -> toggleLayout: (layout, enable) ->

Loading…
Cancel
Save