Skip to content

Commit a8428fe

Browse files
committed
fix: remove debug code
1 parent 12b2a58 commit a8428fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/client/app/data.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ if (import.meta.hot) {
7171
}
7272

7373
function debugConfigLayers(path: string, layers: SiteData[]): SiteData[] {
74-
// debug info
74+
// This helps users to understand which configuration files are active
7575
if (inBrowser && import.meta.env.DEV) {
7676
const summaryTitle = `Config Layers for ${path}:`
7777
const summary = layers.map((c, i, arr) => {
@@ -105,7 +105,6 @@ function getConfigLayers(root: SiteData, path: string): SiteData[] {
105105
// per-app data
106106
export function initData(route: Route): VitePressData {
107107
const site = computed(() => {
108-
;(window as any).siteData = siteDataRef.value
109108
const path = route.data.relativePath
110109
const data = resolveSiteDataByRoute(siteDataRef.value, path)
111110
return stackView(...debugConfigLayers(path, getConfigLayers(data, path)))

0 commit comments

Comments
 (0)