From 261e3fb410f70231106e2fcf7347a7bbc1ac5676 Mon Sep 17 00:00:00 2001 From: Baltazar Gomez Date: Wed, 1 Aug 2018 14:44:01 -0600 Subject: [PATCH 1/2] fix auxclick event (middle click) #1843 --- src/main/createWindow.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; }; From b4868ef2f4451fbbae2f5ac552bff635c99c11c8 Mon Sep 17 00:00:00 2001 From: Baltazar Gomez Date: Wed, 1 Aug 2018 15:56:40 -0600 Subject: [PATCH 2/2] update changelog.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) 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