diff --git a/www/where/index.php b/www/where/index.php index 0b3e25e..bd84faf 100644 --- a/www/where/index.php +++ b/www/where/index.php @@ -61,7 +61,7 @@ function updateLocation() { $.getJSON('?data', function(data) { - $('h1').html((data.state == 'away') ? 'Nobody Knows' : 'At ' + data.state.replace(/^\w/, c => c.toUpperCase())); + $('h1').html((data.state == 'not_home') ? 'Nobody Knows' : 'At ' + data.state.replace(/^\w/, c => c.toUpperCase())); var locLive = new google.maps.LatLng(data.attributes.latitude, data.attributes.longitude); map.setCenter(locLive); })