diff --git a/static/preload.js b/static/preload.js index 1bc6ebeb..62c55f08 100644 --- a/static/preload.js +++ b/static/preload.js @@ -105,16 +105,7 @@ window.utools = window.rubick = { }, getPath(name) { - ipcRenderer.send('msg-trigger', { - type: 'getPath', - name, - }); - return new Promise((resolve, reject) => { - ipcRenderer.on(`msg-back-getPath`, (e, result) => { - console.log(result) - result ? resolve(result) : reject(); - }); - }) + return remote.app.getPath(name); }, showNotification(body, clickFeatureCode) {