1
0
mirror of https://github.com/kognise/water.css.git synced 2025-08-15 17:44:39 +02:00

fix: update css imports to be independent from CDN

This commit is contained in:
Jonas Kuske
2019-06-09 14:27:34 +02:00
parent eca4067fb0
commit 4cf2713004
5 changed files with 12 additions and 20 deletions

View File

@@ -122,7 +122,7 @@ const createColorSchemeListener = (scheme, queryHandler) => {
const themeFromParams = queryParams.get('theme')
/** @type {VersionOptions} */
const initialVersionOptions = {
theme: /** @type {Theme} */ (/^(dark|light)$/.test(themeFromParams) ? themeFromParams : 'dark'),
theme: themeFromParams === 'dark' || themeFromParams === 'light' ? themeFromParams : 'dark',
isLegacy: queryParams.has('legacy') || !supportsCssVars,
isStandalone: queryParams.has('standalone'),
}