Skip to content

Commit 353ee5b

Browse files
authored
fix(browser): add favicon icons to the browser mode ui (#8972)
1 parent 8016da8 commit 353ee5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/browser/src/node/serverOrchestrator.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ export async function resolveOrchestrator(
7777
const jsEntry = manifestContent['orchestrator.html'].file
7878
const base = browserProject.parent.vite.config.base || '/'
7979
baseHtml = baseHtml
80+
.replace('href="./favicon.ico"', `href="${base}__vitest__/favicon.ico"`)
81+
.replace('href="./favicon.svg"', `href="${base}__vitest__/favicon.svg"`)
8082
.replaceAll('./assets/', `${base}__vitest__/assets/`)
8183
.replace(
8284
'<!-- !LOAD_METADATA! -->',

0 commit comments

Comments
 (0)