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