Skip to content

Commit

Permalink
Fixes the site for iOS 9 and older
Browse files Browse the repository at this point in the history
  • Loading branch information
sulkaharo committed Aug 12, 2018
1 parent b3f7d65 commit ca3f518
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/plugins/xdrip-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down

0 comments on commit ca3f518

Please sign in to comment.