log beforeunload too

This commit is contained in:
Seth Call 2019-01-19 22:14:07 -06:00
parent 2de825f064
commit 52ccb2c611
1 changed files with 8 additions and 0 deletions

View File

@ -737,6 +737,14 @@ mixins.push(Reflux.listenTo(UserStore, 'onUserChanged'))
$(window).unload(@windowUnloaded)
$(window).on('beforeunload', (event) =>
# Cancel the event as stated by the standard.
#event.preventDefault()
#Chrome requires returnValue to be set.
#event.returnValue = ''
SessionActions.log({msg:"beforeunload", event: event})
)
@root = jQuery(this.getDOMNode())
$loop = @root.find('input[name="loop"]')