diff --git a/preload.js b/preload.js index 5bd5d4da3..1253387c0 100644 --- a/preload.js +++ b/preload.js @@ -26,6 +26,10 @@ if (process.isMainFrame) { const gui = new GUI({ API, state }) window.Pear = gui.api + window.getPathForFile = (file) => { + return electron.webUtils.getPathForFile(file) + } + if (isDecal === false) { Object.assign(process.env, env) process.chdir(dir)