Skip to content

Commit

Permalink
fix(client): uniform variable location (#17528)
Browse files Browse the repository at this point in the history
  • Loading branch information
imfenghuang committed Jun 21, 2024
1 parent 48b53f2 commit a8e2f6f
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 @@ -190,7 +190,7 @@ async function handleMessage(payload: HMRPayload) {
// module script failed to load (since one of the nested imports is 500).
// in this case a normal update won't work and a full reload is needed.
if (isFirstUpdate && hasErrorOverlay()) {
window.location.reload()
location.reload()
return
} else {
if (enableOverlay) {
Expand Down

0 comments on commit a8e2f6f

Please sign in to comment.