mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 21:25:46 +01:00
Fix 'defaultworld' setting (didn't work previously)
This commit is contained in:
parent
c953097403
commit
7ba72941dc
@ -71,6 +71,8 @@ DynMap.prototype = {
|
|||||||
me.defaultworld = me.defaultworld || world;
|
me.defaultworld = me.defaultworld || world;
|
||||||
});
|
});
|
||||||
var urlarg = me.getParameterByName('worldname');
|
var urlarg = me.getParameterByName('worldname');
|
||||||
|
if(urlarg == "")
|
||||||
|
urlarg = me.options.defaultworld || "";
|
||||||
if(urlarg != "") {
|
if(urlarg != "") {
|
||||||
me.defaultworld = me.worlds[urlarg] || me.defaultworld;
|
me.defaultworld = me.worlds[urlarg] || me.defaultworld;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user