diff options
| author | James Barnett <noreply@jamesbarnett.xyz> | 2018-01-28 16:38:27 +0000 |
|---|---|---|
| committer | James Barnett <noreply@jamesbarnett.xyz> | 2018-01-28 16:38:27 +0000 |
| commit | 4dccd9a8f82102264be856cdeb57eb80b35e1043 (patch) | |
| tree | 874615fd91a3e8ceb116985beb6c8b6a9605b701 /main.js | |
| parent | 4d4df39b25f610476cc971cb0070a4f1b8fb17ae (diff) | |
| download | sql-plus-plus-4dccd9a8f82102264be856cdeb57eb80b35e1043.tar.xz sql-plus-plus-4dccd9a8f82102264be856cdeb57eb80b35e1043.zip | |
Add ctrl+enter shortcut to run query
Diffstat (limited to 'main.js')
| -rw-r--r-- | main.js | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -1,34 +1,34 @@ -const electron = require('electron') +const electron = require("electron") const app = electron.app const BrowserWindow = electron.BrowserWindow -const path = require('path') -const url = require('url') +const path = require("path") +const url = require("url") let mainWindow function createWindow () { mainWindow = new BrowserWindow({width: 800, height: 600}) mainWindow.loadURL(url.format({ - pathname: path.join(__dirname, 'index.html'), - protocol: 'file:', + pathname: path.join(__dirname, "index.html"), + protocol: "file:", slashes: true })) - mainWindow.on('closed', function () { + mainWindow.on("closed", function () { mainWindow = null }) } -app.on('ready', createWindow) +app.on("ready", createWindow) -app.on('window-all-closed', function () { - if (process.platform !== 'darwin') { +app.on("window-all-closed", function () { + if (process.platform !== "darwin") { app.quit() } }) -app.on('activate', function () { +app.on("activate", function () { if (mainWindow === null) { createWindow() } |