Reject connection request on window close (#7401)

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.
feature/default_network_editable
Mark Stacey 5 years ago committed by GitHub
parent 4b4c00e94f
commit 5a8e8c61ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui/app/components/app/provider-page-container/provider-page-container.component.js

@ -34,7 +34,7 @@ export default class ProviderPageContainer extends PureComponent {
}) })
} }
_beforeUnload () { _beforeUnload = () => {
const { origin, rejectProviderRequestByOrigin } = this.props const { origin, rejectProviderRequestByOrigin } = this.props
this.context.metricsEvent({ this.context.metricsEvent({
eventOpts: { eventOpts: {

Loading…
Cancel
Save