Skip to content

Instantly share code, notes, and snippets.

@RoySegall
Created May 24, 2019 07:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RoySegall/ebc936fb722d0fff57e79b1113c5ff52 to your computer and use it in GitHub Desktop.
Save RoySegall/ebc936fb722d0fff57e79b1113c5ff52 to your computer and use it in GitHub Desktop.
function createWindow () {
/**
* Initial window options
*/
mainWindow = new BrowserWindow({
height: 563,
useContentSize: true,
width: 1000,
webPreferences: {
nodeIntegration: true,
webSecurity: false,
},
});
fs.writeFile("/tmp/open-with", JSON.stringify(files), function(err) {});
mainWindow.loadURL(winURL)
mainWindow.on('closed', () => {
mainWindow = null
})
}
app.on('ready', createWindow)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment