Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const electron = require('electron')
- const {app, BrowserWindow, menu} = electron
- const path = require('path')
- const url = require('url')
- let win
- function createWindow() {
- win = new BrowserWindow({
- width:800,
- height:600,
- resizable: false,
- icon: __dirname+'app/assets/images/favicon.ico'
- });
- // win.setMenu(null);
- win.loadURL(
- url.format({
- pathname: path.join(__dirname,'app/index.html'),
- protocol: 'file',
- slashes: true
- })
- );
- }
- app.on('ready', createWindow)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement