log beforeunload too
This commit is contained in:
parent
2de825f064
commit
52ccb2c611
|
|
@ -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"]')
|
||||
|
|
|
|||
Loading…
Reference in New Issue