mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 15:09:54 +01:00
14 lines
382 B
JavaScript
14 lines
382 B
JavaScript
|
import Wombat from './wombat';
|
||
|
|
||
|
window._WBWombat = Wombat;
|
||
|
window._WBWombatInit = function(wbinfo) {
|
||
|
if (!this._wb_wombat || !this._wb_wombat.actual) {
|
||
|
var wombat = new Wombat(this, wbinfo);
|
||
|
wombat.actual = true;
|
||
|
this._wb_wombat = wombat.wombatInit();
|
||
|
this._wb_wombat.actual = true;
|
||
|
} else if (!this._wb_wombat) {
|
||
|
console.warn('_wb_wombat missing!');
|
||
|
}
|
||
|
};
|