Permalink
Browse files

Prevent app from redirecting when dropping link

  • Loading branch information...
dannyqiu committed Nov 6, 2017
1 parent 4e75616 commit 811a52718c7a98f0e8d2fe2069f1ecba3d407564
Showing with 4 additions and 0 deletions.
  1. +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());

0 comments on commit 811a527

Please sign in to comment.