mirror of
https://github.com/webbukkit/dynmap.git
synced 2025-01-12 02:40:56 +01:00
Fix cache poisoning on initial tiles on view
This commit is contained in:
parent
3f2d9dd5df
commit
7bcce9c7e0
@ -194,7 +194,9 @@ var DynmapTileLayer = L.TileLayer.extend({
|
||||
if (!url) {
|
||||
this._cachedTileUrls[tileName] = url = this.options.dynmap.getTileUrl(tileName);
|
||||
}
|
||||
|
||||
if (typeof timestamp === 'undefined') {
|
||||
timestamp = this.options.dynmap.inittime
|
||||
}
|
||||
if(typeof timestamp !== 'undefined') {
|
||||
url += (url.indexOf('?') === -1 ? '?timestamp=' + timestamp : '×tamp=' + timestamp);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user