fixing JS error

This commit is contained in:
Pēteris Caune 2015-07-01 00:41:29 +03:00
parent f5ef17a661
commit ce210b69df

View File

@ -16,7 +16,8 @@ $(function () {
$("#timer").data("timer", data.timer);
}
if (data.last_ping_human.indexOf("seconds ago") > 0)
var lph = data.last_ping_human;
if (lph && lph.indexOf("seconds ago") > 0)
data.last_ping_human = "seconds ago";
if (data.last_ping_human != lastPingHuman) {