work around some very weird browser bugs

This commit is contained in:
Matthias Wirth
2025-03-08 07:26:19 +00:00
parent 900c70ea74
commit f8f26e3801
2 changed files with 3 additions and 3 deletions

View File

@@ -2721,7 +2721,7 @@ PlaneObject.prototype.isNonIcao = function() {
};
PlaneObject.prototype.checkVisible = function() {
const refresh = lastRefreshInt / 1000;
const refresh = g.lastRefreshInt / 1000;
const noInfoTimeout = replay ? 600 : (reApi ? (30 + 2 * refresh) : (30 + Math.min(1, (globeTilesViewCount / globeSimLoad)) * (2 * refresh)));
const modeSTime = (guessModeS && this.dataSource == "modeS") ? 300 : 0;
const tisbReduction = (globeIndex && this.icao[0] == '~') ? 15 : 0;

View File

@@ -134,7 +134,7 @@ let lastRequestSize = 0;
let lastRequestBox = '';
let nextQuerySelected = 0;
let enableDynamicCachebusting = false;
let lastRefreshInt = 1000;
g.lastRefreshInt = 1000;
let reapTimeout = globeIndex ? 240 : 480;
@@ -537,7 +537,7 @@ function fetchData(options) {
}
let currentTime = new Date().getTime();
const refreshMs = refreshInt()
lastRefreshInt = refreshMs;
g.lastRefreshInt = refreshMs;
if (!options.force) {
if (