From e7f9d05c3e2ef4f4c1db3b2c17e586f0fc26a6f6 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Thu, 29 May 2025 14:06:14 +0530 Subject: [PATCH] fix: disable appearance scripts in zero-js mode closes #4766 --- src/node/config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/node/config.ts b/src/node/config.ts index e0d6c453..60b86072 100644 --- a/src/node/config.ts +++ b/src/node/config.ts @@ -343,6 +343,7 @@ export async function resolveSiteData( function resolveSiteDataHead(userConfig?: UserConfig): HeadConfig[] { const head = userConfig?.head ?? [] + if (userConfig?.mpa) return head // add inline script to apply dark mode, if user enables the feature. // this is required to prevent "flash" on initial page load.