8 lines
188 B
JavaScript
8 lines
188 B
JavaScript
|
const { contextBridge, ipcRenderer } = require('electron')
|
||
|
|
||
|
contextBridge.exposeInMainWorld('electron', {
|
||
|
startDrag: (fileName) => {
|
||
|
ipcRenderer.send('ondragstart', fileName)
|
||
|
}
|
||
|
})
|