feat: #20442 adds fiddle for opening external links and the pro version of opening all outbound links (#20763)

This commit is contained in:
Alan Ionita 2019-11-13 05:46:35 +00:00 committed by Cheng Zhao
parent 97959b5e5c
commit 09533e77da
3 changed files with 113 additions and 0 deletions

View file

@ -0,0 +1,25 @@
const { app, BrowserWindow } = require('electron')
let mainWindow = null
function createWindow () {
const windowOptions = {
width: 600,
height: 400,
title: 'Open External Links',
webPreferences: {
nodeIntegration: true
}
}
mainWindow = new BrowserWindow(windowOptions)
mainWindow.loadFile('index.html')
mainWindow.on('closed', () => {
mainWindow = null
})
}
app.on('ready', () => {
createWindow()
})