diff options
author | 2017-11-06 11:53:54 -0500 | |
---|---|---|
committer | 2017-11-06 12:05:05 -0500 | |
commit | 811a52718c7a98f0e8d2fe2069f1ecba3d407564 (patch) | |
tree | c5fef486beb612d6298bcd1442b461261f415407 /src/app.js | |
parent | Merge branch 'develop' of github.com:meetfranz/franz into develop (diff) | |
download | ferdium-app-811a52718c7a98f0e8d2fe2069f1ecba3d407564.tar.gz ferdium-app-811a52718c7a98f0e8d2fe2069f1ecba3d407564.tar.zst ferdium-app-811a52718c7a98f0e8d2fe2069f1ecba3d407564.zip |
Prevent app from redirecting when dropping link
Diffstat (limited to 'src/app.js')
-rw-r--r-- | src/app.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app.js b/src/app.js index b539ea494..a0b88611c 100644 --- a/src/app.js +++ b/src/app.js | |||
@@ -101,3 +101,7 @@ window.addEventListener('load', () => { | |||
101 | }; | 101 | }; |
102 | window.franz.render(); | 102 | window.franz.render(); |
103 | }); | 103 | }); |
104 | |||
105 | // Prevent drag and drop into window from redirecting | ||
106 | window.addEventListener('dragover', event => event.preventDefault()); | ||
107 | window.addEventListener('drop', event => event.preventDefault()); | ||