diff options
author | Saúl Ibarra Corretgé <s@saghul.net> | 2020-06-30 11:16:21 +0200 |
---|---|---|
committer | Saúl Ibarra Corretgé <s@saghul.net> | 2020-06-30 11:16:55 +0200 |
commit | ca1eb702507fdc4400fe21c905a9f85702f92a14 (patch) | |
tree | 72112e71ba5c234dbbd4c9d452e5ceade4ca0dff /main.js | |
parent | dc3dd4459ae60d7cd3b203bffb3e1475769458d2 (diff) |
Share logic for opening external links
Diffstat (limited to 'main.js')
-rw-r--r-- | main.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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', () => { |