mirror of
https://git.freebsd.org/ports.git
synced 2025-07-08 12:59:17 -04:00
Changelog: - https://github.com/electron/electron/releases/tag/v22.0.2 - https://github.com/electron/electron/releases/tag/v22.0.3 - https://github.com/electron/electron/releases/tag/v22.1.0 PR: 269194 Reported by: Yonas Yanfa <yonas.yanfa@gmail.com> Approved by: mikael (maintainer)
11 lines
604 B
TypeScript
11 lines
604 B
TypeScript
--- electron/lib/common/api/clipboard.ts.orig 2023-01-24 16:58:16 UTC
|
|
+++ electron/lib/common/api/clipboard.ts
|
|
@@ -12,7 +12,7 @@ if (process.type === 'renderer') {
|
|
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);
|