From 1b7c4137fbf72101b9fbbab050b0f13f5ffd0a92 Mon Sep 17 00:00:00 2001 From: oisupov Date: Fri, 28 Oct 2022 20:27:40 +0400 Subject: [PATCH] Close gateway url change popup after click submit Resolves https://github.com/brave/brave-browser/issues/26104 --- .../settings/brave_ipfs_page/change_ipfs_gateway_dialog.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/resources/settings/brave_ipfs_page/change_ipfs_gateway_dialog.ts b/browser/resources/settings/brave_ipfs_page/change_ipfs_gateway_dialog.ts index 203310433d30..d74b01e95e3d 100644 --- a/browser/resources/settings/brave_ipfs_page/change_ipfs_gateway_dialog.ts +++ b/browser/resources/settings/brave_ipfs_page/change_ipfs_gateway_dialog.ts @@ -74,7 +74,7 @@ class ChangeIpfsGatewayDialog extends ChangeIpfsGatewayDialogBase { this.isUrlValid_ = success if (success) { this.setPrefValue(this.pref.key, this.gatewayUrl_); - this.fire('close'); + this.dispatchEvent(new Event('close')); } else { this.invalidAddressMessage_ = this.i18n('ipfsErrorInvalidAddressOrigin') }