From ccab1614218e75b7edddefd5a673fbdd35313f31 Mon Sep 17 00:00:00 2001 From: neauoire Date: Sun, 3 Nov 2019 20:58:58 -0500 Subject: [PATCH] * --- desktop/main.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/desktop/main.js b/desktop/main.js index 16eb20f..f7d60c4 100644 --- a/desktop/main.js +++ b/desktop/main.js @@ -1,7 +1,9 @@ -const { app, BrowserWindow, webFrame, Menu } = require('electron') +'use strict' + +/* global createWindow */ + +const { app, BrowserWindow, Menu } = require('electron') const path = require('path') -const url = require('url') -const shell = require('electron').shell let isShown = true @@ -10,7 +12,7 @@ app.win = null app.on('ready', () => { app.win = new BrowserWindow({ width: 780, - height: 392, + height: 462, minWidth: 380, minHeight: 360, backgroundColor: '#000', @@ -22,13 +24,10 @@ app.on('ready', () => { webPreferences: { zoomFactor: 1.0, nodeIntegration: true, backgroundThrottling: false } }) - app.win.webContents.removeAllListeners('devtools-reload-page') - app.win.loadURL(`file://${__dirname}/sources/index.html`) // app.inspect() app.win.on('closed', () => { - win = null app.quit() })