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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
17 additions and
0 deletions
-
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) { |
|
|
|