aboutsummaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
authorJames Barnett <noreply@jamesbarnett.xyz>2018-02-10 19:51:27 +0000
committerJames Barnett <noreply@jamesbarnett.xyz>2018-02-10 19:51:27 +0000
commitcd9be261e3d54070845c21b84bfc20891cabde31 (patch)
tree396a1694f90d1b9ddd33ce7b0f2c48d2e8df1a4a /main.js
parent47bb4be1e296a3d5a0758593c06dd2f057566009 (diff)
downloadsql-plus-plus-cd9be261e3d54070845c21b84bfc20891cabde31.tar.xz
sql-plus-plus-cd9be261e3d54070845c21b84bfc20891cabde31.zip
Minor code cleanup
Diffstat (limited to 'main.js')
-rw-r--r--main.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/main.js b/main.js
index c85b9ab..5f4342b 100644
--- a/main.js
+++ b/main.js
@@ -6,7 +6,7 @@ const url = require("url");
let uiWindow;
let queryExecutorProcess;
-function createMainWindow () {
+function createMainWindow() {
uiWindow = new BrowserWindow({
width: 800,
height: 600
@@ -17,7 +17,7 @@ function createMainWindow () {
slashes: true
}));
- uiWindow.on("closed", function () {
+ uiWindow.on("closed", () => {
uiWindow = null;
app.quit();
});
@@ -34,24 +34,24 @@ function createQueryExecutorProcess() {
slashes: true
}));
- queryExecutorProcess.on("closed", function () {
+ queryExecutorProcess.on("closed", () => {
queryExecutorProcess = null;
});
}
-app.on("ready", function() {
+app.on("ready", () => {
createMainWindow();
createQueryExecutorProcess();
});
-app.on("window-all-closed", function () {
+app.on("window-all-closed", () => {
if (process.platform !== "darwin") {
app.quit();
}
});
-app.on("activate", function () {
+app.on("activate", () => {
if (uiWindow === null) {
createWindow();
}