links to documentation for attributes, links and search + fix for opening external links

This commit is contained in:
azivner
2018-08-14 23:07:50 +02:00
parent ff5b84db10
commit acbd18e8fc
3 changed files with 11 additions and 11 deletions

View File

@@ -36,7 +36,7 @@ async function createMainWindow() {
win.on('closed', onClosed);
win.webContents.on('new-window', (e, url) => {
if (url !== mainWindow.webContents.getURL()) {
if (url !== win.webContents.getURL()) {
e.preventDefault();
require('electron').shell.openExternal(url);
}