docs: update clipboard fiddles (#36946)

This commit is contained in:
David Sanders 2023-01-19 11:59:35 -08:00 committed by GitHub
parent 55c818d0a8
commit 4e4ae9ff53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 55 additions and 20 deletions

View file

@ -0,0 +1,5 @@
const { contextBridge, ipcRenderer } = require('electron')
contextBridge.exposeInMainWorld('clipboard', {
writeText: (text) => ipcRenderer.invoke('clipboard:writeText', text)
})