fix recommends history bug on direct load

main
Bryce Allen 10 years ago
parent 8a080b6089
commit bbdeda951a

@ -63,7 +63,8 @@
// the state to history // the state to history
var item_name = $.trim($("#item").val()); var item_name = $.trim($("#item").val());
var normalized_name = normalize_name(item_name); var normalized_name = normalize_name(item_name);
if (window.history.state["item_name"] == normalized_name) { if (window.history.state
&& window.history.state["item_name"] == normalized_name) {
console.log("item not changed, skipping update"); console.log("item not changed, skipping update");
return; return;
} }

Loading…
Cancel
Save