Skip to content

Commit a8e2f6f

Browse files
authored
fix(client): uniform variable location (#17528)
1 parent 48b53f2 commit a8e2f6f

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
@@ -190,7 +190,7 @@ async function handleMessage(payload: HMRPayload) {
190190
// module script failed to load (since one of the nested imports is 500).
191191
// in this case a normal update won't work and a full reload is needed.
192192
if (isFirstUpdate && hasErrorOverlay()) {
193-
window.location.reload()
193+
location.reload()
194194
return
195195
} else {
196196
if (enableOverlay) {

0 commit comments

Comments
 (0)