You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
452 B

console.log(process.title)
const { createWindow } = require("./mainWindow")
const { app } = require('electron')
const rightClickMenu = require("./contextMenu")
function startup(opts) {
app.whenReady().then(() => {
let win = createWindow(opts)
win.webContents.openDevTools()
win.once('ready-to-show', () => {
win.show()
})
app.on('window-all-closed', () => {
rightClickMenu();
app.quit();
})
})
}
module.exports = {
startup
}