SHARE
TWEET

Untitled

a guest Mar 23rd, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const electron =require('electron');
  2. const url =require('url');
  3. const path =require('path');
  4.  
  5. const {app, BrowserWindow} = electron;
  6.  
  7. let mainWindow;
  8.  
  9. app.on('ready', function(){
  10.  
  11.     mainWindow = new BrowserWindow({});
  12.     mainWindow.setMenu(null);
  13.     mainWindow.setResizable(false);
  14.     mainWindow.loadURL(
  15.          url.format({
  16.              pathname: path.join(__dirname, 'app.html'),
  17.              protocol: 'file',
  18.              slashes:true
  19.          }));
  20. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top