From ba61182299c6b9f996faecbb24edae20eb6c44f2 Mon Sep 17 00:00:00 2001 From: SimonLaux Date: Tue, 12 Sep 2023 13:15:01 +0200 Subject: [PATCH] fix unreachable duplicated check for mailto scheme --- src/main/windows/html_email.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/windows/html_email.ts b/src/main/windows/html_email.ts index 1408ad117e..c94fdf8c33 100644 --- a/src/main/windows/html_email.ts +++ b/src/main/windows/html_email.ts @@ -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