diff --git a/lib/gui.js b/lib/gui.js index 236a472..03c66cb 100644 --- a/lib/gui.js +++ b/lib/gui.js @@ -74,7 +74,7 @@ function (chroma, Map, Sidebar, Tabs, Container, Meshstats, Linklist, var infobox = new Infobox(config, sidebar, router) var tabs = new Tabs() var overview = new Container() - var meshstats = new Meshstats() + var meshstats = new Meshstats(config) var newnodeslist = new SimpleNodelist("new", "firstseen", router, "Neue Knoten") var lostnodeslist = new SimpleNodelist("lost", "lastseen", router, "Verschwundene Knoten") var nodelist = new Nodelist(router) diff --git a/lib/meshstats.js b/lib/meshstats.js index b7c7b5e..59d18be 100644 --- a/lib/meshstats.js +++ b/lib/meshstats.js @@ -1,5 +1,5 @@ define(function () { - return function () { + return function (config) { var self = this var stats, timestamp @@ -23,7 +23,7 @@ define(function () { self.render = function (el) { var h2 = document.createElement("h2") - h2.textContent = "Übersicht" + h2.textContent = config.siteName el.appendChild(h2) var p = document.createElement("p")