1
0
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:
Jonas Kuske
2019-05-31 00:59:55 +02:00
parent ba6664cb91
commit 3ced8a8ded
3 changed files with 3 additions and 3 deletions

View File

@@ -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)