refactor router

This commit is contained in:
Nils Schneider 2015-03-27 22:25:28 +01:00
commit f5dbd56a70
3 changed files with 21 additions and 14 deletions

View file

@ -45,7 +45,7 @@ function (Router, Map, Sidebar, Tabs, Container, Meshstats, Linklist, Nodelist,
Promise.all(urls.map(getJSON))
.then(function (d) { createGUI(); return d })
.then(handle_data)
.then(function () { router.loadState(window.location.hash) })
.then(function () { router.start() })
function handle_data(data) {
var nodedict = data[0]