Skip to content

Commit e7f9d05

Browse files
committed
fix: disable appearance scripts in zero-js mode
closes #4766
1 parent 906a44a commit e7f9d05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/node/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ export async function resolveSiteData(
343343

344344
function resolveSiteDataHead(userConfig?: UserConfig): HeadConfig[] {
345345
const head = userConfig?.head ?? []
346+
if (userConfig?.mpa) return head
346347

347348
// add inline script to apply dark mode, if user enables the feature.
348349
// this is required to prevent "flash" on initial page load.

0 commit comments

Comments
 (0)