Skip to content

Commit

Permalink
fix error import
Browse files Browse the repository at this point in the history
  • Loading branch information
VillanCh committed Nov 22, 2021
1 parent 6cf783b commit 400d714
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions app/main/handlers/upgradeUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ const https = require("https");
const requestProgress = require("request-progress");
const request = require("request");
const sudo = require("sudo-prompt");
const {platform} = require("process");
const {ca} = require("wait-on/exampleConfig");

const homeDir = path.join(os.homedir(), "yakit-projects");
const secretDir = path.join(homeDir, "auth");
Expand Down Expand Up @@ -400,14 +398,8 @@ module.exports = {
return `${process.platform}-${process.arch}`;
})

// asyncinstallYakit wrapper
const asyncinstallYakit = (params) => {
return new Promise((resolve, reject) => {
shell.openPath(yakEngineDir)
})
}
ipcMain.handle("install-yakit", async (e, params) => {
return await asyncinstallYakit(params)
return shell.openPath(yakEngineDir)
})


Expand Down

0 comments on commit 400d714

Please sign in to comment.