Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add window.__VITEPRESS__ #3634

Merged
merged 2 commits into from
Mar 6, 2024
Merged

feat: add window.__VITEPRESS__ #3634

merged 2 commits into from
Mar 6, 2024

Conversation

LoTwT
Copy link
Contributor

@LoTwT LoTwT commented Mar 6, 2024

description

This PR is to add window.__VITEPRESS__.

It helps to detect if the current site is powered by Vitepress, referring to here.

src/client/app/index.ts Outdated Show resolved Hide resolved
@brc-dd brc-dd merged commit f6bd99e into vuejs:main Mar 6, 2024
7 checks passed
@LoTwT LoTwT deleted the global-variable branch March 6, 2024 05:28
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants