5 lines
190 B
JavaScript
5 lines
190 B
JavaScript
const { contextBridge, ipcRenderer } = require('electron/renderer')
|
|
|
|
contextBridge.exposeInMainWorld('clipboard', {
|
|
writeText: (text) => ipcRenderer.invoke('clipboard:writeText', text)
|
|
})
|