Skip to content

Commit

Permalink
Fixed starting
Browse files Browse the repository at this point in the history
+ fixed running versions
  • Loading branch information
Nadwey committed Jul 5, 2022
1 parent c55f296 commit a42e9b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async function createWindow() {
}
}

ipcMain.handle("isDev", (e) => {
ipcMain.on("isDev", (e) => {
e.returnValue = isDev;
});

Expand Down
2 changes: 1 addition & 1 deletion preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { getCurrentWindow } = require("@electron/remote");
const { contextBridge, ipcRenderer } = require("electron");
const Titlebar = require("@6c65726f79/custom-titlebar");
const electron = require("electron");
const versionsApiSettings = require("./SE3ApiSettings")(ipcRenderer.invoke("isDev"));
const versionsApiSettings = require("./SE3ApiSettings")(ipcRenderer.sendSync("isDev"));
const { RendererBridge } = require("electronbb");
let rendererBridge = new RendererBridge();

Expand Down
2 changes: 1 addition & 1 deletion src/se3Api/versionsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ export function UninstallVersion(versionTag) {
}

export function RunVersion(versionTag) {
return window.se3Api.RunVersion.callIgnore(versionTag);
return window.se3Api.RunVersion(versionTag);
}

0 comments on commit a42e9b7

Please sign in to comment.