diff --git a/CHANGELOG.md b/CHANGELOG.md index 1284bc07f..8d292fdd1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). ### Fixed * **Wallet -> Get Credits** page now shows correct ShapeShift status when it's avialable ([#1836](https://github.com/lbryio/lbry-desktop/issue)) + * Fix middle click link error ([#1843](https://github.com/lbryio/lbry-desktop/issues/1843)} ## [0.23.0] - 2018-07-25 diff --git a/src/main/createWindow.js b/src/main/createWindow.js index 976e8352b..5d4beff05 100644 --- a/src/main/createWindow.js +++ b/src/main/createWindow.js @@ -1,4 +1,4 @@ -import { app, BrowserWindow, dialog, screen } from 'electron'; +import { app, BrowserWindow, dialog, shell, screen } from 'electron'; import isDev from 'electron-is-dev'; import windowStateKeeper from 'electron-window-state'; @@ -123,6 +123,11 @@ export default appState => { window.webContents.on('crashed', () => { window = null; }); + + window.webContents.on('new-window', (event, url) => { + event.preventDefault(); + shell.openExternal(url); + }); return window; };