diff --git a/gui/preload.js b/gui/preload.js index 38c91bae4..f1241a6b6 100644 --- a/gui/preload.js +++ b/gui/preload.js @@ -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 {