Skip to content

Commit f6bd99e

Browse files
authoredMar 6, 2024··
feat: add window.__VITEPRESS__ (#3634)
1 parent 90eab25 commit f6bd99e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/client/app/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ const VitePressApp = defineComponent({
6464
})
6565

6666
export async function createApp() {
67+
;(globalThis as any).__VITEPRESS__ = true
68+
6769
const router = newRouter()
6870

6971
const app = newApp()

0 commit comments

Comments
 (0)
Please sign in to comment.