aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorbsimml <75682042+bsimml@users.noreply.github.com>2021-03-23 16:21:16 +0100
committerGitHub <noreply@github.com>2021-03-23 16:21:16 +0100
commitdb6d976ae2d5ae39aba6c6337cd36719ff7d8e38 (patch)
tree6831eee4d8f92a0d56bc6c91aa7aa3072617b849 /app
parent5c49372e11eeb396fbc5a8b80234c463c89d40b5 (diff)
Allow mailto links to be opened externally
Diffstat (limited to 'app')
-rw-r--r--app/features/utils/openExternalLink.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/features/utils/openExternalLink.js b/app/features/utils/openExternalLink.js
index 7694b53..b317061 100644
--- a/app/features/utils/openExternalLink.js
+++ b/app/features/utils/openExternalLink.js
@@ -2,7 +2,7 @@ const { shell } = require('electron');
const url = require('url');
-const protocolRegex = /^https?:/i;
+const protocolRegex = /^(https?|mailto):/i;
/**
* Opens the given link in an external browser.