mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
karma fixes: avoid accessing undef var
This commit is contained in:
parent
8ddf43684f
commit
20e49c7391
@ -126,6 +126,7 @@ describe('WombatJS', function () {
|
|||||||
initScript: function () {
|
initScript: function () {
|
||||||
wbinfo = {
|
wbinfo = {
|
||||||
wombat_opts: {},
|
wombat_opts: {},
|
||||||
|
wombat_ts: '',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
wombatScript: wombatScript,
|
wombatScript: wombatScript,
|
||||||
|
@ -2468,7 +2468,7 @@ var _WBWombat = function($wbwindow, wbinfo) {
|
|||||||
|
|
||||||
wb_abs_prefix = wb_replay_prefix;
|
wb_abs_prefix = wb_replay_prefix;
|
||||||
|
|
||||||
if (!wbinfo.is_live && wbinfo.wombat_ts.length > 0) {
|
if (!wbinfo.is_live && wbinfo.wombat_ts) {
|
||||||
wb_capture_date_part = "/" + wbinfo.wombat_ts + "/";
|
wb_capture_date_part = "/" + wbinfo.wombat_ts + "/";
|
||||||
} else {
|
} else {
|
||||||
wb_capture_date_part = "";
|
wb_capture_date_part = "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user