5 lines
172 B
JavaScript
5 lines
172 B
JavaScript
const { contextBridge, ipcRenderer } = require('electron/renderer')
|
|
|
|
contextBridge.exposeInMainWorld('electronAPI', {
|
|
dragStart: () => ipcRenderer.send('ondragstart')
|
|
})
|