2019-11-05 21:39:39 +00:00
|
|
|
const { ipcRenderer } = require('electron')
|
|
|
|
|
|
|
|
const dragFileLink = document.getElementById('drag-file-link')
|
|
|
|
|
|
|
|
dragFileLink.addEventListener('dragstart', event => {
|
|
|
|
event.preventDefault()
|
|
|
|
ipcRenderer.send('ondragstart', __filename)
|
|
|
|
})
|