Skip to content

Commit 7d84062

Browse files
committed
fix(app): replace console.error with window.console.error for consistency
1 parent afd6042 commit 7d84062

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/plugins/app.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,14 @@ async function getHtmlBuildTime(): Promise<string | null> {
9595
const res = await fetch(`${baseUrl}index.html?time=${Date.now()}`);
9696

9797
if (!res.ok) {
98-
console.error('getHtmlBuildTime error:', res.status, res.statusText);
9998
return null;
10099
}
101100

102101
const html = await res.text();
103102
const match = html.match(/<meta name="buildTime" content="(.*)">/);
104103
return match?.[1] || null;
105104
} catch (error) {
106-
console.error('getHtmlBuildTime error:', error);
105+
window.console.error('getHtmlBuildTime error:', error);
107106
return null;
108107
}
109108
}

0 commit comments

Comments
 (0)