Commit 862f621d93e593d2efde16fff331480b80ebb76f

Authored by OpenWapp Developer
1 parent ecaf50902d

It seems to be an error in the platform but the third parameter of mozAlarms.add() is not optional.

Showing 1 changed file with 1 additions and 1 deletions

app/scripts/models/background-service.js View file @ 862f621
... ... @@ -79,7 +79,7 @@
79 79 }
80 80  
81 81 var nextAlarm = new Date(Date.now() + awakePeriod);
82   - var alarmRequest = alarms.add(nextAlarm, 'ignoreTimezone');
  82 + var alarmRequest = alarms.add(nextAlarm, 'honorTimezone', {});
83 83 alarmRequest.onsuccess = function () {
84 84 var alarmId = alarmRequest.result;
85 85 localStorage.alarmId = alarmId;