Skip to content

Commit 2ac7526

Browse files
committed
minor fixes
1 parent 6be354d commit 2ac7526

File tree

1 file changed

+1
-1
lines changed
  • 2-ui/5-loading/01-onload-ondomcontentloaded

1 file changed

+1
-1
lines changed

2-ui/5-loading/01-onload-ondomcontentloaded/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ window.addEventListener("beforeunload", (event) => {
199199
Instead, in such handlers one should set `event.returnValue` to a string to get the result similar to the code above:
200200
```js run
201201
window.addEventListener("beforeunload", (event) => {
202-
// same as returning from window.onbeforeunload
202+
// works, same as returning from window.onbeforeunload
203203
event.returnValue = "There are unsaved changes. Leave now?";
204204
});
205205
```

0 commit comments

Comments
 (0)