Skip to content

Commit

Permalink
fix: update client.ts@cleanUrl to accomodate blob protocol (#16182)
Browse files Browse the repository at this point in the history
Co-authored-by: 翠 / green <green@sapphi.red>
  • Loading branch information
ferdisap and sapphi-red authored Mar 19, 2024
1 parent 72104f6 commit 1a3b1d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function setupWebSocket(
}

function cleanUrl(pathname: string): string {
const url = new URL(pathname, location.toString())
const url = new URL(pathname, 'http://vitejs.dev')
url.searchParams.delete('direct')
return url.pathname + url.search
}
Expand Down

0 comments on commit 1a3b1d7

Please sign in to comment.