DigitMagazine

Create a function that will define a browser-window

Mar 23rd, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. const createWindow = () => {
  2. let win = new BrowserWindow({width: 1366, height: 768, backgroundColor: '#333'});
  3. win.loadURL(url.format({
  4. pathname: path.join(process.cwd(), 'view/index.html'),
  5. protocol: 'file:',
  6. slashes: true
  7. }));
  8. };
Add Comment
Please, Sign In to add comment