mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 11:15:21 +01:00
Added another way to specify configuration file.
This commit is contained in:
parent
5f32f8fb99
commit
c4e1362274
@ -3,6 +3,7 @@ var config = {
|
||||
updateUrl: 'up/', // For Apache and lighttpd
|
||||
// updateUrl: 'up.php?path=', // For Apache and lighttpd without ability to natively proxy
|
||||
// updateUrl: 'up.aspx?path=', // For IIS
|
||||
// configurationUrl: 'standalone/dynmap_config.json', // For some standalone setups.
|
||||
tileWidth: 128,
|
||||
tileHeight: 128
|
||||
};
|
@ -78,7 +78,7 @@ function Location(world, x, y, z) {
|
||||
function DynMap(options) {
|
||||
var me = this;
|
||||
me.options = options;
|
||||
$.getJSON(me.options.updateUrl + 'configuration', function(configuration) {
|
||||
$.getJSON(me.options.configurationUrl || (me.options.updateUrl + 'configuration'), function(configuration) {
|
||||
me.configure(configuration);
|
||||
me.initialize();
|
||||
}, function(status, statusMessage) {
|
||||
|
Loading…
Reference in New Issue
Block a user