Fixed email links being rejected by will-navigate (#1093)
This commit is contained in:
parent
020c7b8220
commit
90963e8381
|
@ -389,6 +389,9 @@ function handleAppWebContentsCreated(dc, contents) {
|
||||||
if (isTrustedURL(parsedURL) || isTrustedPopupWindow(event.sender)) {
|
if (isTrustedURL(parsedURL) || isTrustedPopupWindow(event.sender)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (parsedURL.protocol === 'mailto:') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (customLogins[contentID].inProgress) {
|
if (customLogins[contentID].inProgress) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue