const electron = require('electron') // require('electron-debug')({ showDevTools: true }) const app = electron.app const BrowserWindow = electron.BrowserWindow const path = require('path') const url = require('url') let mainWindow function createWindow () { mainWindow = new BrowserWindow({ toobar: true, width: 800, height: 600, webPreferences: { nodeIntegration: false } }) // and load the index.html of the app. // mainWindow.loadURL(url.format({ // pathname: path.join(__dirname, 'index.html'), // protocol: 'file:', // slashes: true // })) mainWindow.loadURL('http://181.40.66.126:10500') // mainWindow.setMenu(null) mainWindow.setMenuBarVisibility(false) mainWindow.maximize() mainWindow.on('closed', function () { mainWindow = null }) } app.on('ready', createWindow) app.on('window-all-closed', function () { if (process.platform !== 'darwin') { app.quit() } }) app.on('activate', function () { // On OS X it's common to re-create a window in the app when the // dock icon is clicked and there are no other windows open. if (mainWindow === null) { createWindow() } }) // In this file you can include the rest of your app's specific main process // code. You can also put them in separate files and require them here.