From bb3d5e240c21b25f0e7788b11396bb53a83103f7 Mon Sep 17 00:00:00 2001 From: "SNDST00M: M.U.N.I.N" <82655227+SNDST00M@users.noreply.github.com> Date: Thu, 30 Sep 2021 19:21:28 +0100 Subject: [PATCH] Fix selectWorld typo when world is a string --- DynmapCore/src/main/resources/extracted/web/js/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DynmapCore/src/main/resources/extracted/web/js/map.js b/DynmapCore/src/main/resources/extracted/web/js/map.js index 1f624f0f..0bbcd9f7 100644 --- a/DynmapCore/src/main/resources/extracted/web/js/map.js +++ b/DynmapCore/src/main/resources/extracted/web/js/map.js @@ -569,7 +569,7 @@ DynMap.prototype = { }, selectWorldAndPan: function(world, location, completed) { var me = this; - if (typeof(world) === 'String') { world = me.worlds[world]; } + if (typeof(world) === 'string') { world = me.worlds[world]; } if (me.world === world) { if(location) { var latlng = me.maptype.getProjection().fromLocationToLatLng(location);