mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
wombat typo: check that __WB_top_frame is not null before using!
This commit is contained in:
parent
a4efa58d1e
commit
950c31737c
@ -790,7 +790,9 @@ var wombat_internal = function($wbwindow) {
|
||||
message["param"] = arguments[0];
|
||||
}
|
||||
|
||||
$wbwindow.__WB_top_frame.postMessage(message, wb_info.top_host);
|
||||
if ($wbwindow.__WB_top_frame) {
|
||||
$wbwindow.__WB_top_frame.postMessage(message, wb_info.top_host);
|
||||
}
|
||||
}
|
||||
|
||||
$wbwindow.history[func_name] = rewritten_func;
|
||||
@ -1988,7 +1990,9 @@ var wombat_internal = function($wbwindow) {
|
||||
}
|
||||
|
||||
// norify of cookie setting to allow server-side tracking
|
||||
$wbwindow.__WB_top_frame.postMessage(message, wb_info.top_host);
|
||||
if ($wbwindow.__WB_top_frame) {
|
||||
$wbwindow.__WB_top_frame.postMessage(message, wb_info.top_host);
|
||||
}
|
||||
|
||||
// if no subdomain, eg. "localhost", just remove domain altogether
|
||||
if ($wbwindow.location.hostname.indexOf(".") >= 0 && !IP_RX.test($wbwindow.location.hostname)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user