mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2025-01-03 08:58:32 +00:00
6 lines
246 B
CoffeeScript
6 lines
246 B
CoffeeScript
addEventListener 'beforeunload', (e) ->
|
|
unless (butterfly.body.classList.contains('dead') or
|
|
location.href.indexOf('session') > -1)
|
|
e.returnValue = 'This terminal is active and not in session.
|
|
Are you sure you want to kill it?'
|