mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
wobmat init fix from #383:
- Ensure WombatInit() methods end in ';' - pass 'wbinfo' to WombatInit()
This commit is contained in:
parent
671dd2c204
commit
1c7badf117
@ -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!");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
@ -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!");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
@ -45,7 +45,7 @@
|
||||
wbinfo.wombat_opts = {};
|
||||
|
||||
if (window && window._WBWombatInit) {
|
||||
window._WBWombatInit();
|
||||
window._WBWombatInit(wbinfo);
|
||||
}
|
||||
</script>
|
||||
{% else %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user