Fixed not replacing {timestamp} placeholder in configuration request

This commit is contained in:
Michael Wieland 2021-02-25 17:56:36 +01:00
parent b1f6b52d6d
commit fabaf487d9
1 changed files with 2 additions and 2 deletions

View File

@ -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,