mirror of
https://github.com/kognise/water.css.git
synced 2025-12-10 00:35:04 +01:00
fix: determine correct alternate theme in getFileSnippet
This commit is contained in:
parent
ba6664cb91
commit
3ced8a8ded
3 changed files with 3 additions and 3 deletions
|
|
@ -47,7 +47,7 @@ const getFileSnippet = ({ theme, isLegacy, isStandalone }) => {
|
|||
|
||||
if (!isLegacy || isStandalone) return stylesheetSnippet
|
||||
|
||||
const altTheme = theme === 'dark' ? 'dark' : 'light'
|
||||
const altTheme = theme === 'dark' ? 'light' : 'dark'
|
||||
const mainStandaloneFile = getFileName({ theme, isLegacy: true, isStandalone: true })
|
||||
const altStandaloneFile = getFileName({ theme: altTheme, isLegacy: true, isStandalone: true })
|
||||
const preloadSnippet = getFilePreloadSnippet(mainStandaloneFile, altStandaloneFile, altTheme)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue