6 lines
241 B
JavaScript
6 lines
241 B
JavaScript
const { contextBridge, ipcRenderer } = require('electron')
|
|
|
|
contextBridge.exposeInMainWorld('clipboard', {
|
|
readText: () => ipcRenderer.invoke('clipboard:readText'),
|
|
writeText: (text) => ipcRenderer.invoke('clipboard:writeText', text)
|
|
})
|