diff --git a/helper.js b/helper.js index 87eeaad..e14faf3 100644 --- a/helper.js +++ b/helper.js @@ -150,7 +150,7 @@ function attributeEntry(el, label, value) { function createIframe(opt, width, height) { el = document.createElement("iframe") width = typeof width !== 'undefined' ? width : '525px'; - height = typeof height !== 'undefined' ? width : '350px'; + height = typeof height !== 'undefined' ? height : '350px'; if (opt.src) el.src = opt.src @@ -195,7 +195,7 @@ function showStat(o, subst) { } if (o.iframe) { - content = createIframe(o.iframe) + content = createIframe(o.iframe, o.width, o.height) if (o.iframe.src) content.src = listReplace(o.iframe.src, subst) else diff --git a/lib/infobox/.charts.js.swp b/lib/infobox/.charts.js.swp new file mode 100644 index 0000000..243ae91 Binary files /dev/null and b/lib/infobox/.charts.js.swp differ diff --git a/lib/main.js b/lib/main.js index 13649f7..396aed1 100644 --- a/lib/main.js +++ b/lib/main.js @@ -113,7 +113,6 @@ function (moment, Router, L, GUI, numeral) { }) links.forEach( function (d) { - console.log(d) if (d.type === "tunnel" || d.type === "fastd") d.type = "fastd" else if (d.type === "l2tp") {