fix: fix grayscale wellness setting in dark mode (#1351)

This commit is contained in:
Nolan Lawson 2019-07-21 18:21:35 -07:00 committed by GitHub
parent 4d098d6b46
commit 7628eeed66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ function loadCSS (href) {
export function switchToTheme (themeName = DEFAULT_THEME, enableGrayscale) {
if (enableGrayscale) {
themeName = prefersDarkTheme ? 'grayscale-dark' : 'grayscale'
themeName = prefersDarkTheme ? 'dark-grayscale' : 'grayscale'
}
let themeColor = window.__themeColors[themeName]
meta.content = themeColor || window.__themeColors[DEFAULT_THEME]