Merge branch 'master' into release
This commit is contained in:
commit
15708f5afd
@ -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);
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user