Skip to content

Commit

Permalink
Reject connection request on window close (#7401)
Browse files Browse the repository at this point in the history
This was first implemented in #7335, but the final version didn't work
because the `_beforeUnload` handler was not bound early, so `this` was
not defined when it was triggered.
  • Loading branch information
Gudahtt authored Nov 13, 2019
1 parent 4b4c00e commit 5a8e8c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default class ProviderPageContainer extends PureComponent {
})
}

_beforeUnload () {
_beforeUnload = () => {
const { origin, rejectProviderRequestByOrigin } = this.props
this.context.metricsEvent({
eventOpts: {
Expand Down

0 comments on commit 5a8e8c6

Please sign in to comment.