screenshot query option

This commit is contained in:
Matthias Wirth
2022-08-02 19:58:39 +02:00
parent 7742c0ceaf
commit dbca5a996f
2 changed files with 16 additions and 3 deletions

View File

@@ -411,7 +411,6 @@ function db_load_type_cache() {
g.planesOrdered[i].setTypeData();
}
});
refresh();
}
g.afterLoad = [];
@@ -439,8 +438,17 @@ function afterFirstFetch() {
geoMag = geoMagFactory(cof2Obj());
db_load_type_cache();
if (typeof load_gt != 'undefined' && load_gt) { load_gt(); }
if (typeof load_fi != 'undefined' && load_fi) { load_fi(); }
refresh();
if (limitUpdates != 0) {
if (typeof load_gt != 'undefined' && load_gt) { load_gt(); }
if (typeof load_fi != 'undefined' && load_fi) { load_fi(); }
}
if (usp.has('screenshot')) {
clearIntervalTimers('silent');
}
console.timeEnd('afterFirstFetch');
}, 150);
}
@@ -742,6 +750,10 @@ function initPage() {
limitUpdates = tmp;
}
if (usp.has('screenshot')) {
limitUpdates = 0;
}
if (usp.has('nowebgl')) {
loStore['webgl'] = "false";
}