ipc: emit 'close' when closing/refreshing tab

This commit is contained in:
bordun 2020-03-30 18:00:16 +02:00
parent 6e6d5a69eb
commit 4571e2df07
3 changed files with 8 additions and 6 deletions

View file

@ -95,7 +95,7 @@ module.exports = {
reload: function(){
backup.save()
window.onbeforeunload = null
editor.unsavedSession = false
window.location.href = window.location.href
},