Update markers.js

fixed issue with standalone webserver and spaces in world name, double urlencode changed %20 to %2520 which didn't resolve to the proper address
This commit is contained in:
JurgenKuyper 2023-01-17 14:56:45 +01:00 committed by GitHub
parent a6548ec0b7
commit 8f62d8e57e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ componentconstructors['markers'] = function(dynmap, configuration) {
function loadmarkers(world) {
removeAllMarkers();
var url = concatURL(dynmap.options.url.markers, '_markers_/marker_' + encodeURIComponent(world) + '.json');
var url = concatURL(dynmap.options.url.markers, '_markers_/marker_' + world + '.json');
$.getJSON(url, function(data) {
var ts = data.timestamp;