Skip to content
Snippets Groups Projects
Commit 3e2b5621 authored by Daniel Bayley's avatar Daniel Bayley
Browse files

Kill respective app instance on project close

parent 39bda4bb
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,11 @@ module.exports =
projects[path] = (parseInt pid) + 1
writeFile tmp, JSON.stringify projects
window.addEventListener 'beforeunload', ->
exec "kill #{projects[path]}"
#-------------------------------------------------------------------------------
deactivate: ->
@subs.dispose()
window.removeEventListener 'beforeunload'
unlink tmp
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment