diff --git a/pywb/static/wombat.js b/pywb/static/wombat.js index f6cefc4e..a5fa3f74 100644 --- a/pywb/static/wombat.js +++ b/pywb/static/wombat.js @@ -4109,13 +4109,13 @@ var _WBWombat = function($wbwindow, wbinfo) { window._WBWombat = _WBWombat; -window._WBWombatInit = function() { +window._WBWombatInit = function(wbinfo) { if (!this._wb_wombat || !this._wb_wombat.actual) { this._wb_wombat = new _WBWombat(this, wbinfo); this._wb_wombat.actual = true; } else if (!this._wb_wombat) { console.warn("_wb_wombat missing!"); } -} +}; diff --git a/pywb/static/wombatProxyMode.js b/pywb/static/wombatProxyMode.js index c49b9c44..9bec367e 100644 --- a/pywb/static/wombatProxyMode.js +++ b/pywb/static/wombatProxyMode.js @@ -374,14 +374,14 @@ var _WBWombat = function ($wbwindow, wbinfo) { window._WBWombat = _WBWombat; -window._WBWombatInit = function() { +window._WBWombatInit = function(wbinfo) { if (!this._wb_wombat || !this._wb_wombat.actual) { this._wb_wombat = new _WBWombat(this, wbinfo); this._wb_wombat.actual = true; } else if (!this._wb_wombat) { console.warn("_wb_wombat missing!"); } -} +}; diff --git a/pywb/templates/head_insert.html b/pywb/templates/head_insert.html index dbf89ca2..12a45e0e 100644 --- a/pywb/templates/head_insert.html +++ b/pywb/templates/head_insert.html @@ -45,7 +45,7 @@ wbinfo.wombat_opts = {}; if (window && window._WBWombatInit) { - window._WBWombatInit(); + window._WBWombatInit(wbinfo); } {% else %}