Fix selectWorld typo when world is a string

This commit is contained in:
SNDST00M: M.U.N.I.N 2021-09-30 19:21:28 +01:00 committed by GitHub
parent d24857ca64
commit bb3d5e240c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);