From d3456ceb0c0eb0b958f2423d0acfa2861af4c7a1 Mon Sep 17 00:00:00 2001 From: rafapaezbas Date: Fri, 3 Jan 2025 16:28:24 +0100 Subject: [PATCH] fixed file-sharing for electron > 31 --- gui/preload.js | 5 +++++ 1 file changed, 5 insertions(+) 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 {