electron/docs/fiddles/native-ui/drag-and-drop/renderer.js

7 lines
179 B
JavaScript
Raw Normal View History

const dragFileLink = document.getElementById('drag-file-link')
dragFileLink.addEventListener('dragstart', event => {
event.preventDefault()
window.electronAPI.dragStart()
})