mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
Fixes the site for iOS 9 and older
This commit is contained in:
@@ -234,8 +234,8 @@ function init(ctx) {
|
||||
|
||||
// session start is only valid if in a session
|
||||
if (sensor && sensor.lastSessionStart && (sensor.lastState != 0x1)) {
|
||||
let diffTime = moment().diff(moment(sensor.lastSessionStart));
|
||||
let duration = moment.duration(diffTime);
|
||||
var diffTime = moment().diff(moment(sensor.lastSessionStart));
|
||||
var duration = moment.duration(diffTime);
|
||||
|
||||
sessionDuration = duration.days() + ' days ' + duration.hours() + ' hours';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user