mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +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._WBWombat = _WBWombat;
|
||||||
|
|
||||||
window._WBWombatInit = function() {
|
window._WBWombatInit = function(wbinfo) {
|
||||||
if (!this._wb_wombat || !this._wb_wombat.actual) {
|
if (!this._wb_wombat || !this._wb_wombat.actual) {
|
||||||
this._wb_wombat = new _WBWombat(this, wbinfo);
|
this._wb_wombat = new _WBWombat(this, wbinfo);
|
||||||
this._wb_wombat.actual = true;
|
this._wb_wombat.actual = true;
|
||||||
} else if (!this._wb_wombat) {
|
} else if (!this._wb_wombat) {
|
||||||
console.warn("_wb_wombat missing!");
|
console.warn("_wb_wombat missing!");
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -374,14 +374,14 @@ var _WBWombat = function ($wbwindow, wbinfo) {
|
|||||||
|
|
||||||
window._WBWombat = _WBWombat;
|
window._WBWombat = _WBWombat;
|
||||||
|
|
||||||
window._WBWombatInit = function() {
|
window._WBWombatInit = function(wbinfo) {
|
||||||
if (!this._wb_wombat || !this._wb_wombat.actual) {
|
if (!this._wb_wombat || !this._wb_wombat.actual) {
|
||||||
this._wb_wombat = new _WBWombat(this, wbinfo);
|
this._wb_wombat = new _WBWombat(this, wbinfo);
|
||||||
this._wb_wombat.actual = true;
|
this._wb_wombat.actual = true;
|
||||||
} else if (!this._wb_wombat) {
|
} else if (!this._wb_wombat) {
|
||||||
console.warn("_wb_wombat missing!");
|
console.warn("_wb_wombat missing!");
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
wbinfo.wombat_opts = {};
|
wbinfo.wombat_opts = {};
|
||||||
|
|
||||||
if (window && window._WBWombatInit) {
|
if (window && window._WBWombatInit) {
|
||||||
window._WBWombatInit();
|
window._WBWombatInit(wbinfo);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user