aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index 6095803..6924b57 100644
--- a/src/index.js
+++ b/src/index.js
@@ -10,10 +10,12 @@ const cli = require("./cli");
function start() {
win = new BrowserWindow({
- width: 500,
+ width: 600,
height: 115,
show: false,
title: "Viper",
+ resizable: false,
+ titleBarStyle: "hidden",
webPreferences: {
nodeIntegration: true,
contextIsolation: false,
@@ -25,6 +27,7 @@ function start() {
win.webContents.once("dom-ready", () => {win.show()});
ipcMain.on("setpath", (event) => {utils.setpath(win)})
+ ipcMain.on("exit", (event) => {process.exit(0)})
}
ipcMain.on("launch", (event) => {utils.launch()})