Skip to content

Commit

Permalink
Fix wallet not loading when explorer request fails (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
Duddino authored Nov 15, 2023
1 parent bc43e82 commit d6c5056
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,13 @@ export async function start() {
registerWorker();
await settingsStart();
// Just load the block count, for use in non-wallet areas
await getNetwork().getBlockCount();
try {
await getNetwork().getBlockCount();
} catch (e) {
// Block count failed, keep loading the wallet
// the network already creates an alert
console.error(e);
}

subscribeToNetworkEvents();

Expand Down

0 comments on commit d6c5056

Please sign in to comment.