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:
@@ -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'),
|
||||
}
|
||||
|
Reference in New Issue
Block a user