refactor router
This commit is contained in:
parent
40ecf2641e
commit
f5dbd56a70
3 changed files with 21 additions and 14 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue