mirror of
https://github.com/kognise/water.css.git
synced 2025-12-07 07:14:57 +01:00
fix: update css imports to be independent from CDN
This commit is contained in:
parent
eca4067fb0
commit
4cf2713004
5 changed files with 12 additions and 20 deletions
|
|
@ -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'),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue