2019-10-10 13:48:33 +00:00
|
|
|
const { app, BrowserWindow } = require('electron')
|
|
|
|
|
|
|
|
let mainWindow = null
|
|
|
|
|
|
|
|
function createWindow () {
|
|
|
|
const windowOptions = {
|
|
|
|
width: 600,
|
|
|
|
height: 400,
|
|
|
|
title: 'Clipboard copy',
|
|
|
|
webPreferences: {
|
|
|
|
nodeIntegration: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mainWindow = new BrowserWindow(windowOptions)
|
|
|
|
mainWindow.loadFile('index.html')
|
|
|
|
|
|
|
|
mainWindow.on('closed', () => {
|
|
|
|
mainWindow = null
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2020-02-03 22:43:22 +00:00
|
|
|
app.whenReady().then(() => {
|
2019-10-10 13:48:33 +00:00
|
|
|
createWindow()
|
|
|
|
})
|