diff --git a/pywb/static/wb.js b/pywb/static/wb.js index 8c8892d1..f6b2fb41 100644 --- a/pywb/static/wb.js +++ b/pywb/static/wb.js @@ -61,7 +61,7 @@ this.ts_to_date = function(ts, is_gmt) return ts; } - var datestr = (ts.substring(0, 4) + "-" + + var datestr = (ts.substring(0, 4) + "-" + ts.substring(4, 6) + "-" + ts.substring(6, 8) + "T" + ts.substring(8, 10) + ":" + @@ -121,6 +121,12 @@ function notify_top() { } this.load = function() { + if (window._wb_js_inited) { + return; + } + + window._wb_js_inited = true; + if ((window.self == window.top) && wbinfo) { if (wbinfo.top_url && (window.location.href != wbinfo.top_url) && wbinfo.mod != "bn_") { // Auto-redirect to top frame diff --git a/pywb/ui/head_insert.html b/pywb/ui/head_insert.html index 52016b50..218e7259 100644 --- a/pywb/ui/head_insert.html +++ b/pywb/ui/head_insert.html @@ -3,7 +3,7 @@