Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Prevent app from redirecting when dropping link
- Loading branch information
Showing
with
4 additions
and
0 deletions.
-
+4
−0
src/app.js
|
@@ -101,3 +101,7 @@ window.addEventListener('load', () => { |
|
|
}; |
|
|
window.franz.render(); |
|
|
}); |
|
|
|
|
|
// Prevent drag and drop into window from redirecting |
|
|
window.addEventListener('dragover', event => event.preventDefault()); |
|
|
window.addEventListener('drop', event => event.preventDefault()); |