From fabaf487d9ff5659b22f3e3406fece2a6e0400f4 Mon Sep 17 00:00:00 2001 From: Michael Wieland Date: Thu, 25 Feb 2021 17:56:36 +0100 Subject: [PATCH] Fixed not replacing {timestamp} placeholder in configuration request --- DynmapCore/src/main/resources/extracted/web/js/map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DynmapCore/src/main/resources/extracted/web/js/map.js b/DynmapCore/src/main/resources/extracted/web/js/map.js index 331146b9..401e9bb2 100644 --- a/DynmapCore/src/main/resources/extracted/web/js/map.js +++ b/DynmapCore/src/main/resources/extracted/web/js/map.js @@ -25,7 +25,7 @@ function DynMap(options) { if(me.checkForSavedURL()) return; me.options = options; - $.getJSON(me.options.url.configuration, function(configuration) { + $.getJSON(me.formatUrl("configuration", { timestamp: me.lasttimestamp }), function(configuration) { if(configuration.error == 'login-required') { me.saveURL(); window.location = 'login.html'; @@ -47,7 +47,7 @@ DynMap.prototype = { registeredTiles: [], players: {}, - lasttimestamp: new Date().getUTCMilliseconds(), /* Pseudorandom - prevent cached '?0' */ + lasttimestamp: new Date().getTime(), /* Pseudorandom - prevent cached '?0' */ reqid: 0, servertime: 0, serverday: false,