From 1d112755f96ce376844cbd85eedccf31e2e8392c Mon Sep 17 00:00:00 2001 From: sergei p Date: Sun, 9 Jan 2022 18:10:57 +0300 Subject: [PATCH] Update keys if opened by direct link (cherry picked from commit 00dd77f76f2b3eab1dc9670a9547b148a72a359e) --- .../settings/brave_ipfs_page/p2p_keys_subpage.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/browser/resources/settings/brave_ipfs_page/p2p_keys_subpage.js b/browser/resources/settings/brave_ipfs_page/p2p_keys_subpage.js index 0af0db883df0..af8dbb6074a1 100644 --- a/browser/resources/settings/brave_ipfs_page/p2p_keys_subpage.js +++ b/browser/resources/settings/brave_ipfs_page/p2p_keys_subpage.js @@ -93,6 +93,7 @@ Polymer({ window.addEventListener('load', this.onLoad_.bind(this)); }, onLoad_: function() { + this.browserProxy_.notifyIpfsNodeStatus(); this.updateKeys(); }, notifyKeylist: function() { @@ -115,6 +116,7 @@ Polymer({ onServiceLaunched: function(success) { this.toggleUILayout(success) + this.localNodeMethod = success if (success) { this.updateKeys(); } @@ -128,12 +130,6 @@ Polymer({ }); }, - /*++++++ - * @override */ - ready: function() { - this.browserProxy_.notifyIpfsNodeStatus(); - }, - isDefaultKey_: function(name) { return name == 'self'; },