|
@@ -201,7 +201,8 @@ exports.convertTrigger = function (options) {
|
|
|
var isCal = trigger.type == 'calendar';
|
|
var isCal = trigger.type == 'calendar';
|
|
|
|
|
|
|
|
if (isCal && !date) {
|
|
if (isCal && !date) {
|
|
|
- date = this.getValueFor(options, 'at', 'firstAt', 'date') || new Date();
|
|
|
|
|
|
|
+ date = this.getValueFor(options, 'trigger', 'at', 'firstAt', 'date');
|
|
|
|
|
+ date = date || new Date();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (isCal) {
|
|
if (isCal) {
|
|
@@ -213,14 +214,6 @@ exports.convertTrigger = function (options) {
|
|
|
trigger.every = options.every;
|
|
trigger.every = options.every;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (!trigger.count && device.platform == 'windows') {
|
|
|
|
|
- trigger.count = trigger.every ? 5 : 1;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- if (trigger.every && device.platform == 'windows') {
|
|
|
|
|
- trigger.every = trigger.every.toString();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
if (!isCal) {
|
|
if (!isCal) {
|
|
|
trigger.notifyOnEntry = !!trigger.notifyOnEntry;
|
|
trigger.notifyOnEntry = !!trigger.notifyOnEntry;
|
|
|
trigger.notifyOnExit = trigger.notifyOnExit === true;
|
|
trigger.notifyOnExit = trigger.notifyOnExit === true;
|