Skip to content

Commit

Permalink
Prevent app from redirecting when dropping link
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyqiu committed Nov 6, 2017
1 parent 4e75616 commit 811a527
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.