Allow mailto links to be opened externally
This commit is contained in:
parent
5c49372e11
commit
db6d976ae2
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue