1
0
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:
Ilya Kreymer 2018-10-05 23:33:27 +00:00
parent 671dd2c204
commit 1c7badf117
3 changed files with 5 additions and 5 deletions

View File

@ -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!");
}
}
};

View File

@ -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!");
}
}
};

View File

@ -45,7 +45,7 @@
wbinfo.wombat_opts = {};
if (window && window._WBWombatInit) {
window._WBWombatInit();
window._WBWombatInit(wbinfo);
}
</script>
{% else %}