We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afd6042 commit 7d84062Copy full SHA for 7d84062
src/plugins/app.ts
@@ -95,15 +95,14 @@ async function getHtmlBuildTime(): Promise<string | null> {
95
const res = await fetch(`${baseUrl}index.html?time=${Date.now()}`);
96
97
if (!res.ok) {
98
- console.error('getHtmlBuildTime error:', res.status, res.statusText);
99
return null;
100
}
101
102
const html = await res.text();
103
const match = html.match(/<meta name="buildTime" content="(.*)">/);
104
return match?.[1] || null;
105
} catch (error) {
106
- console.error('getHtmlBuildTime error:', error);
+ window.console.error('getHtmlBuildTime error:', error);
107
108
109
0 commit comments