Skip to content

Commit 627845f

Browse files
committed
fix file drop behaviour
1 parent 07eea76 commit 627845f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

browser/main/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ window.addEventListener('online', function () {
2525
ipc.send('check-update', 'check-update')
2626
})
2727

28+
document.addEventListener('drop', function (e) {
29+
e.preventDefault()
30+
e.stopPropagation()
31+
})
32+
document.addEventListener('dragover', function (e) {
33+
e.preventDefault()
34+
e.stopPropagation()
35+
})
36+
2837
function notify (title, options) {
2938
if (process.platform === 'win32') {
3039
options.icon = path.join('file://', global.__dirname, '../../resources/app.png')

0 commit comments

Comments
 (0)