From 7f15f3fdb7646b0af9a67b05abd9428405a7f408 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Sun, 26 Sep 2021 23:06:32 +0200 Subject: [PATCH] only get short traces when the search returns 20 planes or less --- html/script.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/html/script.js b/html/script.js index 16ea306..c2753d0 100644 --- a/html/script.js +++ b/html/script.js @@ -4117,7 +4117,9 @@ function onSearch(e) { results = findPlanes(searchTerm, "byIcao", "byCallsign", "byReg", "byType", true); if (results.length > 0 && globeIndex) { toggleIsolation("on"); - getTrace(null, null, {onlyRecent: true, list: results}); + if (results.length < 20) { + getTrace(null, null, {onlyRecent: true, list: results}); + } } return false; }