Commit 652535e5 by Sebastián Katzer

Merge pull request #804 from thisisbrians/expect-every-option-to-be-string-on-ios

Force `every:` to be a string on iOS and display a warning if not
parents 0a44a11a 80dc6caa
......@@ -172,6 +172,16 @@ exports.convertProperties = function (options) {
options.data = JSON.stringify(options.data);
}
if (options.every)
if (device.platform == 'iOS' && typeof options.every != 'string') {
options.every = this.getDefaults().every;
var warning = 'Every option is not a string: ' + options.id;
warning += '. Expects one of: second, minute, hour, day, week, ';
warning += 'month, year on iOS.';
console.warn(warning);
}
}
return options;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment