1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

history replay: check last url instead of last state, which may be empty

This commit is contained in:
Ilya Kreymer 2017-11-09 21:24:39 -08:00
parent dc7b8956bb
commit c87b52543e

View File

@ -3071,7 +3071,10 @@ var _WBWombat = function($wbwindow, wbinfo) {
var states = wbinfo.history_state.states; var states = wbinfo.history_state.states;
var lastState = states[states.length - 1][0]; var lastState = states[states.length - 1][0];
if ($wbwindow.history.state == lastState) { //if ($wbwindow.history.state == lastState) {
// return;
//}
if ($wbwindow.WB_wombat_location.href == states[states.length - 1][2]) {
return; return;
} }