Skip to content

Commit 1a3b1d7

Browse files
ferdisapsapphi-red
andauthored
fix: update client.ts@cleanUrl to accomodate blob protocol (#16182)
Co-authored-by: 翠 / green <[email protected]>
1 parent 72104f6 commit 1a3b1d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/client/client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function setupWebSocket(
111111
}
112112

113113
function cleanUrl(pathname: string): string {
114-
const url = new URL(pathname, location.toString())
114+
const url = new URL(pathname, 'http://vitejs.dev')
115115
url.searchParams.delete('direct')
116116
return url.pathname + url.search
117117
}

0 commit comments

Comments
 (0)