Updated dependencies (delete node_modules, npm install), included windows page script, changed to ejs (for now), initial work on the new design.

This commit is contained in:
Daniel Scalzi
2017-08-27 01:13:48 -04:00
parent 6a44694a32
commit 582ea96dfe
15 changed files with 86 additions and 13 deletions

View File

@@ -1,22 +1,25 @@
const {app, BrowserWindow} = require('electron')
const path = require('path')
const url = require('url')
const ejse = require('ejs-electron')
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let win
function createWindow() {
win = new BrowserWindow({ width: 925, height: 500, icon: getPlatformIcon('WesterosSealSquare')})
win = new BrowserWindow({ width: 980, height: 552, icon: getPlatformIcon('WesterosSealSquare'), frame: false})
win.loadURL(url.format({
pathname: path.join(__dirname, 'app', 'index.html'),
pathname: path.join(__dirname, 'app', 'index.ejs'),
protocol: 'file:',
slashes: true
}))
win.setMenu(null)
win.setResizable(true)
win.on('closed', () => {
win = null
})