From 2a62c514f18360fd8ce03d48a8af7c0d35ff199f Mon Sep 17 00:00:00 2001 From: eric1tran Date: Tue, 9 Mar 2021 18:47:27 +0000 Subject: [PATCH] Don't show button to stats page if there's an issue getting the link --- public_html_merged/script.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public_html_merged/script.js b/public_html_merged/script.js index f654e9d97..785d3ebda 100644 --- a/public_html_merged/script.js +++ b/public_html_merged/script.js @@ -2535,7 +2535,9 @@ function setStatsLink() { myAdsbStatsSiteUrl = data.site_url; } } - }) + }).fail(function() { + $('#stats_page_button').hide(); + }); } // updates the page to replace piaware with flightfeeder references