work around some very weird browser bugs
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user