Skip to content

Commit

Permalink
Reject connection request on window close
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 committed Nov 13, 2019
1 parent ce7f516 commit 55000c1
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 55000c1

Please sign in to comment.