Merge pull request #1056 from ykris45/patch-1

[FIX #988] Disable drag and drop
This commit is contained in:
Sean Yesmunt 2018-02-28 14:19:48 -08:00 committed by GitHub
commit 7bb788cb31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -19,7 +19,7 @@ Web UI version numbers should always match the corresponding version of LBRY App
* Fixed sort by date of published content ([#986](https://github.com/lbryio/lbry-app/issues/986))
* Fix night mode start time, set to 9PM (#1050)
* Fix night mode start time, set to 9PM ([#1050](https://github.com/lbryio/lbry-app/issues/1050))
*
* Disable drag and drop of files into the app ([#1045](https://github.com/lbryio/lbry-app/pull/1045))
### Deprecated
*

View file

@ -62,6 +62,12 @@ ipcRenderer.on('window-is-focused', () => {
dock.setBadge('');
});
document.addEventListener('dragover', event => {
event.preventDefault();
})
document.addEventListener('drop', event => {
event.preventDefault();
});
document.addEventListener('click', event => {
let { target } = event;
while (target && target !== document) {