[FIX #988] Disable drag and drop

This commit is contained in:
YULIUS KURNIAWAN KRISTIANTO 2018-03-01 05:03:36 +07:00 committed by GitHub
parent 53a58ff073
commit 9011996d69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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) {