root error catching
This commit is contained in:
parent
18dcdc21fb
commit
236f8d8997
@ -9,10 +9,13 @@ import layerManager from './LayerManager.js';
|
||||
// hash route compat
|
||||
hashCompat();
|
||||
|
||||
getConfig().then(cfg => {
|
||||
|
||||
getConfig()
|
||||
.then(cfg => {
|
||||
layerManager.setup(cfg.layers);
|
||||
config.set(cfg);
|
||||
wsChannel.connect();
|
||||
m.route(document.getElementById("app"), "/map/0/12/0/0", routes);
|
||||
})
|
||||
.catch(e => {
|
||||
document.getElementById("app").innerHTML = JSON.stringify(e);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user