mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-29 05:55:57 +01:00
Merge branch 'master' of https://github.com/BlueMap-Minecraft/BlueMap
This commit is contained in:
commit
4ebceb8801
@ -598,7 +598,12 @@ export class BlueMapApp {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Only reuse the user's tile cash hash if the current browser navigation event is not a reload.
|
||||||
|
// If it's a reload, we assume the user is troubleshooting and actually wants to refresh the map.
|
||||||
|
const [entry] = performance.getEntriesByType("navigation");
|
||||||
|
if (entry.type != "reload") {
|
||||||
this.mapViewer.clearTileCache(this.loadUserSetting("tileCacheHash", this.mapViewer.tileCacheHash));
|
this.mapViewer.clearTileCache(this.loadUserSetting("tileCacheHash", this.mapViewer.tileCacheHash));
|
||||||
|
}
|
||||||
|
|
||||||
this.mapViewer.superSampling = this.loadUserSetting("superSampling", this.mapViewer.data.superSampling);
|
this.mapViewer.superSampling = this.loadUserSetting("superSampling", this.mapViewer.data.superSampling);
|
||||||
this.mapViewer.data.loadedHiresViewDistance = this.loadUserSetting("hiresViewDistance", this.mapViewer.data.loadedHiresViewDistance);
|
this.mapViewer.data.loadedHiresViewDistance = this.loadUserSetting("hiresViewDistance", this.mapViewer.data.loadedHiresViewDistance);
|
||||||
|
Loading…
Reference in New Issue
Block a user