Skip to content

Commit ccd1210

Browse files
fix bug, when .data field is empty
1 parent 925986b commit ccd1210

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

cache.manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# version 128
2+
# version 129
33

44
# gogole maps files
55
http://maps.google.com/maps/api/js?v=3.10&sensor=false&key=AIzaSyCOqkcNey4CCyG4X0X5qxHAhCgD8g5DwXg

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
55
<title>habitat mobile tracker</title>
6-
<meta name="description" content="A cross-device tracking application for high altitude ballooning with habitat" />
6+
<meta name="description" content="A cross-device web application for tracking high altitude balloons" />
77
<meta name="author" content="Rossen Georgiev" />
88
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
9-
<meta name="apple-mobile-web-app-title" content="Mobile Tracker">
9+
<meta name="apple-mobile-web-app-title" content="Habitat Tracker">
1010
<meta name="apple-mobile-web-app-capable" content="yes" />
1111
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
1212
<link rel="apple-touch-icon" sizes="144x144" href="img/apple-touch-icon.png" />

js/tracker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,7 @@ function graphAddLastPosition(idx) {
865865

866866
// the rest of the series is from the data field
867867
var json = $.parseJSON(new_data.data);
868+
if(!json) return;
868869

869870
$.each(json, function(k, v) {
870871
if(isNaN(v) || v=="") return; // only take data that is numerical

0 commit comments

Comments
 (0)