From ac6d00dffd2872f7c049c4fa82bcb4ef442fd85a Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Thu, 7 Nov 2024 20:56:27 +0100 Subject: [PATCH] don't remove existing trace data if trace jsons can't be loaded --- html/planeObject.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/html/planeObject.js b/html/planeObject.js index a5ec016..41e8c1d 100644 --- a/html/planeObject.js +++ b/html/planeObject.js @@ -1021,6 +1021,10 @@ PlaneObject.prototype.processTrace = function() { if (replay && !this.fullTrace) return; + if (!showTrace && !this.fullTrace && !this.recentTrace) { + return; + } + if (!now) now = new Date().getTime()/1000;