24c9cbcc0a
docs: handle opening links in the default browser in the main process
8 lines
237 B
JavaScript
8 lines
237 B
JavaScript
const { ipcRenderer } = require('electron')
|
|
|
|
const dragFileLink = document.getElementById('drag-file-link')
|
|
|
|
dragFileLink.addEventListener('dragstart', event => {
|
|
event.preventDefault()
|
|
ipcRenderer.send('ondragstart', __filename)
|
|
})
|