From db872c033cb0104ea4c2ec9aac1cc62761a10a21 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Sun, 13 May 2018 09:50:19 +1200 Subject: [PATCH] Implemented #21 --- desktop/main.js | 6 +++--- desktop/sources/index.html | 1 + desktop/sources/scripts/dotgrid.js | 18 +++++++++++++----- desktop/sources/scripts/renderer.js | 6 +++++- 4 files changed, 22 insertions(+), 9 deletions(-) diff --git a/desktop/main.js b/desktop/main.js index d5e2c66..5cfe943 100644 --- a/desktop/main.js +++ b/desktop/main.js @@ -29,10 +29,10 @@ app.win = null; app.on('ready', () => { - app.win = new BrowserWindow({width: 400, height: 420, minWidth: 400, minHeight: 420, backgroundColor:"#000", frame:false, autoHideMenuBar: true, icon: __dirname + '/icon.ico'}) - - app.win.loadURL(`file://${__dirname}/sources/index.html`); + app.win = new BrowserWindow({width: 400, height: 420, minWidth: 400, minHeight: 420, backgroundColor:"#000", frame:false, autoHideMenuBar: true, icon: __dirname + '/icon.ico',webPreferences: {zoomFactor: 1.0}}) + app.win.loadURL(`file://${__dirname}/sources/index.html`); + app.win.on('closed', () => { win = null app.quit() diff --git a/desktop/sources/index.html b/desktop/sources/index.html index a3e039c..632760f 100644 --- a/desktop/sources/index.html +++ b/desktop/sources/index.html @@ -21,6 +21,7 @@