docs: update clipboard fiddles (#36946)
This commit is contained in:
parent
55c818d0a8
commit
4e4ae9ff53
10 changed files with 55 additions and 20 deletions
5
docs/fiddles/system/clipboard/copy/preload.js
Normal file
5
docs/fiddles/system/clipboard/copy/preload.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
const { contextBridge, ipcRenderer } = require('electron')
|
||||
|
||||
contextBridge.exposeInMainWorld('clipboard', {
|
||||
writeText: (text) => ipcRenderer.invoke('clipboard:writeText', text)
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue