aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/index.js b/src/index.js
index b41971d..51449af 100644
--- a/src/index.js
+++ b/src/index.js
@@ -17,7 +17,7 @@ function start() {
title: "Viper",
resizable: false,
titleBarStyle: "hidden",
- icon: path.join(__dirname, 'assets/icons/512x512.png'),
+ icon: path.join(__dirname, "assets/icons/512x512.png"),
webPreferences: {
nodeIntegration: true,
contextIsolation: false,
@@ -46,10 +46,10 @@ ipcMain.on("launchVanilla", (event) => {utils.launch("vanilla")})
ipcMain.on("update", (event) => {utils.update()})
ipcMain.on("setpathcli", (event) => {utils.setpath()});
-ipcMain.on('getVersionInfo', () => {
- win.webContents.send('versionInfo', {
+ipcMain.on("getversion", () => {
+ win.webContents.send("version", {
ns: utils.getInstalledVersion(),
- vp: 'v' + require('../package.json').version
+ vp: "v" + require("../package.json").version
});
});