1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

fix file drop behaviour

This commit is contained in:
Rokt33r
2016-04-02 20:15:14 +09:00
parent 07eea76057
commit 627845f6e4

View File

@@ -25,6 +25,15 @@ window.addEventListener('online', function () {
ipc.send('check-update', 'check-update')
})
document.addEventListener('drop', function (e) {
e.preventDefault()
e.stopPropagation()
})
document.addEventListener('dragover', function (e) {
e.preventDefault()
e.stopPropagation()
})
function notify (title, options) {
if (process.platform === 'win32') {
options.icon = path.join('file://', global.__dirname, '../../resources/app.png')