Skip to content

Commit

Permalink
fix unreachable duplicated check for mailto scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Laux committed Sep 12, 2023
1 parent 5db0233 commit ba61182
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/windows/html_email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,11 +395,7 @@ function makeBrowserView(
if (url.startsWith('mailto:')) {
open_url(url)
} else {
if (
url.startsWith('http:') ||
url.startsWith('https:') ||
url.startsWith('mailto:')
) {
if (url.startsWith('http:') || url.startsWith('https:')) {
shell.openExternal(url)
} else {
dialog
Expand Down

0 comments on commit ba61182

Please sign in to comment.