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 d3456ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gui/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ module.exports = class PearGUI extends ReadyResource {
return ipc.badge(count)
}

this.electron = {}
this.electron.getPathForFile = (file) => {
return electron.webUtils.getPathForFile(file)
}

const kGuiCtrl = Symbol('gui:ctrl')

class Parent extends EventEmitter {
Expand Down

0 comments on commit d3456ce

Please sign in to comment.