Fix url logic (#300)

This commit is contained in:
TymanWasTaken 2022-12-13 22:36:09 -07:00 committed by GitHub
parent f9fd95ac6f
commit fd5f7f78cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,7 +94,7 @@ async function doAfterDefiningTheWindow() {
if (url === "about:blank") return {action: "allow"};
// Allow Discord stream popout
if (url === "https://discord.com/popout") return {action: "allow"};
if (url.startsWith("https:" || url.startsWith("http:") || url.startsWith("mailto:"))) {
if (url.startsWith("https:") || url.startsWith("http:") || url.startsWith("mailto:")) {
shell.openExternal(url);
} else {
if (ignoreProtocolWarning) {