parent
bcac7fc375
commit
0273eab753
8 changed files with 127 additions and 8 deletions
5
desktop/preload.js
Normal file
5
desktop/preload.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
const { contextBridge, ipcRenderer } = require('electron');
|
||||
|
||||
contextBridge.exposeInMainWorld('electronAPI', {
|
||||
copyToClipboard: (text) => ipcRenderer.invoke('clipboard-write', text)
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue