From de8dd9e1fca7a8bea5dc0a628e2d77551d8e602e Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Fri, 8 May 2020 10:25:12 +0200 Subject: [PATCH] avoid jumps/getTrace when switching back to a tab in showTrace --- html/early.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html/early.js b/html/early.js index 83fd5cb..0f173c0 100644 --- a/html/early.js +++ b/html/early.js @@ -219,6 +219,8 @@ if (typeof document.hidden !== "undefined") { // Opera 12.10 and Firefox 18 and function handleVisibilityChange() { if (!document[hidden]) { fetchData(); + if (showTrace) + return; if (SelectedPlane) getTrace(SelectedPlane, SelectedPlane.icao, {}); }