root error catching

This commit is contained in:
Thomas Rudin 2019-12-01 18:26:35 +01:00
parent 18dcdc21fb
commit 236f8d8997

View File

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