chat-client/main.js

24 lines
472 B
JavaScript
Raw Normal View History

2019-03-24 17:22:44 +11:00
// Load electron
const electron = require("electron");
const {app, BrowserWindow} = electron;
// Load url and path
const url = require("url");
const path = require("path");
// Set the window varible
let win;
// Load the GUI
app.on('ready', function()
{
// Set the electron GUI
win = new BrowserWindow({width:1000,height:600});
win.loadURL(url.format ({
pathname: path.join(__dirname, 'index.html'),
protocol: 'file:',
slashes: true
}));
});