summaryrefslogtreecommitdiff
path: root/electron_js
diff options
context:
space:
mode:
Diffstat (limited to 'electron_js')
-rw-r--r--electron_js/main.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/electron_js/main.js b/electron_js/main.js
index 243e1f21..7aae0ea0 100644
--- a/electron_js/main.js
+++ b/electron_js/main.js
@@ -1,8 +1,7 @@
const electron = require('electron');
const windowStateKeeper = require('electron-window-state');
-//require('electron-debug')({showDevTools: true});
-// Module to control application life.
const {app, globalShortcut} = electron;
+
// Module to create native browser window.
const {BrowserWindow} = electron;
var isFs = false;
@@ -51,7 +50,6 @@ const mx = globalShortcut.register('CommandOrControl+Alt+F', () => {
webPreferences:{nodeIntegration:false}
});
- //win = new BrowserWindow({width: 1024, height: 900, webPreferences:{nodeIntegration:false}});
win = new BrowserWindow({
x: mainWindowState.x,
y: mainWindowState.y,
@@ -109,9 +107,6 @@ app.on('activate', () => {
});
app.on('will-quit', () => {
- // Unregister a shortcut.
- //globalShortcut.unregister('CommandOrControl+X')
-
// Unregister all shortcuts.
globalShortcut.unregisterAll()
});