Browse Source

Merge pull request #1021 from NastiaS/drag-and-drop

fix a bug of being able to drag and drop urls, images into the app an…
master
Gaëtan Renaudeau 7 years ago
committed by GitHub
parent
commit
39402edbea
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      src/renderer/init.js

17
src/renderer/init.js

@ -94,6 +94,23 @@ async function init() {
if (isGlobalTabEnabled()) disableGlobalTab()
})
}
document.addEventListener(
'dragover',
(event: Event) => {
event.preventDefault()
return false
},
false,
)
document.addEventListener(
'drop',
(event: Event) => {
event.preventDefault()
return false
},
false,
)
}
function r(Comp) {

Loading…
Cancel
Save