Skip to content

Commit

Permalink
feat: add window.__VITEPRESS__ (#3634)
Browse files Browse the repository at this point in the history
  • Loading branch information
LoTwT committed Mar 6, 2024
1 parent 90eab25 commit f6bd99e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/client/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ const VitePressApp = defineComponent({
})

export async function createApp() {
;(globalThis as any).__VITEPRESS__ = true

const router = newRouter()

const app = newApp()
Expand Down

0 comments on commit f6bd99e

Please sign in to comment.