Fixed changing default color scheme in config, affecting the result (#755)

This commit is contained in:
Miradil
2023-04-29 06:56:50 +02:00
committed by GitHub
parent 4940d4a929
commit 83d10c59ad
@@ -2,7 +2,7 @@ import { enable, disable, auto, setFetchMethod } from 'darkreader'
import * as params from '@params' import * as params from '@params'
const darkreader = params?.darkmode?.darkreader || {} const darkreader = params?.darkmode?.darkreader || {}
const defaultColorScheme = darkreader.defaultColorScheme || 'system' const defaultColorScheme = darkreader.defaultcolorscheme || 'system'
const theme = { const theme = {
brightness: 100, brightness: 100,
contrast: 100, contrast: 100,