X Tutup
Skip to content

Commit 9005803

Browse files
GhostlyDarkckerr
authored andcommitted
Fix typos (electron#13999)
1 parent 9a1ad2b commit 9005803

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/tutorial/security.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ app.on('web-contents-created', (event, contents) => {
618618
contents.on('will-navigate', (event, navigationUrl) => {
619619
const parsedUrl = new URL(navigationUrl)
620620

621-
if (url.hostname !== 'my-own-server.com') {
621+
if (parsedUrl.hostname !== 'my-own-server.com') {
622622
event.preventDefault()
623623
}
624624
})
@@ -669,5 +669,5 @@ app.on('web-contents-created', (event, contents) => {
669669
[browser-view]: ../api/browser-view.md
670670
[webview-tag]: ../api/webview-tag.md
671671
[web-contents]: ../api/web-contents.md
672-
[new-window]: ../api/web-contents#event-new-window
673-
[will-navigate]: ../api/web-contents#event-will-navigate
672+
[new-window]: ../api/web-contents.md#event-new-window
673+
[will-navigate]: ../api/web-contents.md#event-will-navigate

0 commit comments

Comments
 (0)
X Tutup