Fix typos (#13999)
This commit is contained in:
parent
9a1ad2b93f
commit
9005803667
1 changed files with 3 additions and 3 deletions
|
@ -618,7 +618,7 @@ app.on('web-contents-created', (event, contents) => {
|
||||||
contents.on('will-navigate', (event, navigationUrl) => {
|
contents.on('will-navigate', (event, navigationUrl) => {
|
||||||
const parsedUrl = new URL(navigationUrl)
|
const parsedUrl = new URL(navigationUrl)
|
||||||
|
|
||||||
if (url.hostname !== 'my-own-server.com') {
|
if (parsedUrl.hostname !== 'my-own-server.com') {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -669,5 +669,5 @@ app.on('web-contents-created', (event, contents) => {
|
||||||
[browser-view]: ../api/browser-view.md
|
[browser-view]: ../api/browser-view.md
|
||||||
[webview-tag]: ../api/webview-tag.md
|
[webview-tag]: ../api/webview-tag.md
|
||||||
[web-contents]: ../api/web-contents.md
|
[web-contents]: ../api/web-contents.md
|
||||||
[new-window]: ../api/web-contents#event-new-window
|
[new-window]: ../api/web-contents.md#event-new-window
|
||||||
[will-navigate]: ../api/web-contents#event-will-navigate
|
[will-navigate]: ../api/web-contents.md#event-will-navigate
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue