aboutsummaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
authorSaúl Ibarra Corretgé <s@saghul.net>2020-06-30 11:16:21 +0200
committerSaúl Ibarra Corretgé <s@saghul.net>2020-06-30 11:16:55 +0200
commitca1eb702507fdc4400fe21c905a9f85702f92a14 (patch)
tree72112e71ba5c234dbbd4c9d452e5ceade4ca0dff /main.js
parentdc3dd4459ae60d7cd3b203bffb3e1475769458d2 (diff)
Share logic for opening external links
Diffstat (limited to 'main.js')
-rw-r--r--main.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.js b/main.js
index 0ca6cde..137fe8d 100644
--- a/main.js
+++ b/main.js
@@ -4,8 +4,7 @@ const {
BrowserWindow,
Menu,
app,
- ipcMain,
- shell
+ ipcMain
} = require('electron');
const contextMenu = require('electron-context-menu');
const debug = require('electron-debug');
@@ -22,6 +21,7 @@ const {
const path = require('path');
const URL = require('url');
const config = require('./app/features/config');
+const { openExternalLink } = require('./app/features/utils/openExternalLink');
const showDevTools = Boolean(process.env.SHOW_DEV_TOOLS) || (process.argv.indexOf('--show-dev-tools') > -1);
@@ -211,7 +211,7 @@ function createJitsiMeetWindow() {
if (!target || target === 'browser') {
event.preventDefault();
- shell.openExternal(url);
+ openExternalLink(url);
}
});
mainWindow.on('closed', () => {