From f6bd99eb1311238e1114301a767634b139327916 Mon Sep 17 00:00:00 2001 From: Lo Date: Wed, 6 Mar 2024 13:25:24 +0800 Subject: [PATCH] feat: add `window.__VITEPRESS__` (#3634) --- src/client/app/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/app/index.ts b/src/client/app/index.ts index 57cfe15a..911760a1 100644 --- a/src/client/app/index.ts +++ b/src/client/app/index.ts @@ -64,6 +64,8 @@ const VitePressApp = defineComponent({ }) export async function createApp() { + ;(globalThis as any).__VITEPRESS__ = true + const router = newRouter() const app = newApp()