Skip to content

Commit

Permalink
fixed file-sharing for electron > 31
Browse files Browse the repository at this point in the history
  • Loading branch information
rafapaezbas committed Jan 3, 2025
1 parent 76aad54 commit f21ec80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f21ec80

Please sign in to comment.