Minor fixes, beginning work on configuration system.

This commit is contained in:
Daniel Scalzi
2017-11-22 05:48:40 -05:00
parent 2c7dc16247
commit 5352239f91
4 changed files with 75 additions and 19 deletions

View File

@@ -11,7 +11,7 @@ let win
function createWindow() {
win = new BrowserWindow({ width: 980, height: 552, icon: getPlatformIcon('WesterosSealSquare'), frame: false})
ejse.data('bkid', Math.floor((Math.random() * fs.readdirSync('app/assets/images/backgrounds').length)))
ejse.data('bkid', Math.floor((Math.random() * fs.readdirSync(path.join(__dirname, 'app', 'assets', 'images', 'backgrounds')).length)))
win.loadURL(url.format({
pathname: path.join(__dirname, 'app', 'index.ejs'),