From cff6098e30325e5c4d7e9c8deea11e933345451d Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Wed, 13 Jul 2022 19:38:47 +0200 Subject: [PATCH] deprecate non zstd access for adsbexchange --- html/early.js | 4 +++- html/script.js | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/html/early.js b/html/early.js index df69bfd..8fd1bea 100644 --- a/html/early.js +++ b/html/early.js @@ -795,14 +795,16 @@ function add_kml_overlay(url, name, opacity) { })); } let zstdDecode = null; +let inhibitFetch = false; function webAssemblyFail(e) { zstdDecode = null; console.log(e); console.error("Error loading zstddec, probable cause: webassembly not present or not working"); zstd = false; if (adsbexchange) { + inhibitFetch = true; reApi = false; - jQuery("#update_error_detail").text("Your browser is not supporting webassembly, this website might stop working in the future without webassembly."); + jQuery("#update_error_detail").text("Your browser is not supporting webassembly, this website does not work without webassembly."); jQuery("#update_error").css('display','block'); } } diff --git a/html/script.js b/html/script.js index 4a191ea..f9dc4cc 100644 --- a/html/script.js +++ b/html/script.js @@ -299,8 +299,9 @@ let C429 = 0; let fetchCalls = 0; function fetchData(options) { options = options || {}; - if (heatmap || replay || showTrace || pTracks || !loadFinished) + if (heatmap || replay || showTrace || pTracks || !loadFinished || inhibitFetch) { return; + } let currentTime = new Date().getTime(); if (!options.force) {