another workaround for the browser bug

This commit is contained in:
Matthias Wirth
2025-03-12 08:36:14 +00:00
parent f8fab1ac20
commit 2edd2c5158
2 changed files with 6 additions and 0 deletions

View File

@@ -2730,6 +2730,10 @@ PlaneObject.prototype.checkVisible = function() {
// recompute seen and seen_pos
let __now = now;
if (isNaN(__now)) {
console.error("checkVisible: now is NaN, this is probably a browser bug: https://issues.chromium.org/issues/401652934");
__now = g.now;
}
if (this.dataSource == "uat") {
__now = uat_now;
}

View File

@@ -324,6 +324,7 @@ function processReceiverUpdate(data, init) {
now = data.now;
}
}
g.now = now;
if (globeIndex) {
if ((showGrid || loStore['globeGrid'] == 'true')
@@ -7851,6 +7852,7 @@ function replayStep(arg) {
last = now;
now = replay.pointsU[i + 2] / 1000 + replay.pointsU[i + 1] * 4294967.296;
g.now = now;
traceOpts.endStamp = now + replay.ival;