From c96b9cc2cd60753a328599b5fdba47fdce3ab7eb Mon Sep 17 00:00:00 2001 From: supertestnet <58400631+supertestnet@users.noreply.github.com> Date: Thu, 16 Mar 2023 15:16:46 -0500 Subject: [PATCH] Update index.html --- index.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/index.html b/index.html index f636b63..435e957 100644 --- a/index.html +++ b/index.html @@ -417,6 +417,15 @@ } catch( e ) {} return; } + function isValidJson( content ) { + if ( !content ) return; + try { + var json = JSON.parse( content ); + } catch ( e ) { + return; + } + return true; + } async function getAllFeeRates() { var fees = await getData( "https://mempool.space/api/v1/fees/recommended" ); fees = JSON.parse( fees );