1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00

Remove _removeBeforeUnload calls in confirm-encryption-public-key.component.js and confirm-decrypt-message.component.js (#12825)

This commit is contained in:
Dan J Miller 2021-11-25 14:42:40 -03:30 committed by GitHub
parent 57155dda1a
commit 74b3a3a1c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 4 deletions

View File

@ -260,7 +260,6 @@ export default class ConfirmDecryptMessage extends Component {
large
className="request-decrypt-message__footer__cancel-button"
onClick={async (event) => {
this._removeBeforeUnload();
await cancelDecryptMessage(txData, event);
metricsEvent({
eventOpts: {
@ -280,7 +279,6 @@ export default class ConfirmDecryptMessage extends Component {
large
className="request-decrypt-message__footer__sign-button"
onClick={async (event) => {
this._removeBeforeUnload();
await decryptMessage(txData, event);
metricsEvent({
eventOpts: {

View File

@ -163,7 +163,6 @@ export default class ConfirmEncryptionPublicKey extends Component {
large
className="request-encryption-public-key__footer__cancel-button"
onClick={async (event) => {
this._removeBeforeUnload();
await cancelEncryptionPublicKey(txData, event);
metricsEvent({
eventOpts: {
@ -183,7 +182,6 @@ export default class ConfirmEncryptionPublicKey extends Component {
large
className="request-encryption-public-key__footer__sign-button"
onClick={async (event) => {
this._removeBeforeUnload();
await encryptionPublicKey(txData, event);
this.context.metricsEvent({
eventOpts: {