diff options
Diffstat (limited to 'devel/electron37/files/patch-electron_lib_renderer_api_clipboard.ts')
-rw-r--r-- | devel/electron37/files/patch-electron_lib_renderer_api_clipboard.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/electron37/files/patch-electron_lib_renderer_api_clipboard.ts b/devel/electron37/files/patch-electron_lib_renderer_api_clipboard.ts new file mode 100644 index 000000000000..5941a466e994 --- /dev/null +++ b/devel/electron37/files/patch-electron_lib_renderer_api_clipboard.ts @@ -0,0 +1,11 @@ +--- electron/lib/renderer/api/clipboard.ts.orig 2023-08-14 18:19:06 UTC ++++ electron/lib/renderer/api/clipboard.ts +@@ -7,7 +7,7 @@ const makeRemoteMethod = function (method: keyof Elect + return (...args: any[]) => ipcRendererUtils.invokeSync(IPC_MESSAGES.BROWSER_CLIPBOARD_SYNC, method, ...args); + }; + +-if (process.platform === 'linux') { ++if (process.platform === 'linux' || process.platform === 'freebsd') { + // On Linux we could not access clipboard in renderer process. + for (const method of Object.keys(clipboard) as (keyof Electron.Clipboard)[]) { + clipboard[method] = makeRemoteMethod(method); |