From bda7d2295b2d6fdb3e055494b2732d572e367a83 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Tue, 9 May 2023 01:14:15 +0530 Subject: [PATCH] Hard dependency removal --Wallet should work even if smart contract related APIs are not working --- index.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 5ae66ba..45c1d59 100644 --- a/index.html +++ b/index.html @@ -52,7 +52,11 @@ routeTo(window.location.hash, { firstLoad: true }) }).catch(e => { console.error(e) - notify('Error fetching tokens', 'error') + if (window.location.hash.includes('smartcontracts')) + routeTo('', { firstLoad: true }) + else + routeTo(window.location.hash, { firstLoad: true }) + getRef('smart_contract_link').classList.add('hidden') }).finally(() => { loader(false) }) @@ -620,7 +624,7 @@
  • - +