Skip to content

Commit 5aabad3

Browse files
authored
fix(docs): fix load error handling window reload example (#16159)
1 parent 7ee4261 commit 5aabad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guide/build.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Vite emits `vite:preloadError` event when it fails to load dynamic imports. `eve
7070

7171
```js
7272
window.addEventListener('vite:preloadError', (event) => {
73-
window.reload() // for example, refresh the page
73+
window.location.reload() // for example, refresh the page
7474
})
7575
```
7676

0 commit comments

Comments
 (0)