Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /