mirror of
https://github.com/kognise/water.css.git
synced 2025-08-07 21:56:42 +02:00
fix: determine correct alternate theme in getFileSnippet
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user