Commit 33a440df by Sebastián Katzer

Remove device switches

parent e364b93b
...@@ -120,10 +120,6 @@ exports.add = function (props, callback, scope) { ...@@ -120,10 +120,6 @@ exports.add = function (props, callback, scope) {
this.convertProperties(properties); this.convertProperties(properties);
} }
if (device.platform != 'iOS'&&device.platform != 'Android' ) {
notifications = notifications[0];
}
this.exec('add', notifications, callback, scope); this.exec('add', notifications, callback, scope);
}, this); }, this);
}; };
...@@ -154,7 +150,7 @@ exports.update = function (options, callback, scope) { ...@@ -154,7 +150,7 @@ exports.update = function (options, callback, scope) {
*/ */
exports.clear = function (ids, callback, scope) { exports.clear = function (ids, callback, scope) {
ids = Array.isArray(ids) ? ids : [ids]; ids = Array.isArray(ids) ? ids : [ids];
ids = this.convertIds(ids); ids = this.convertIds(ids);
this.exec('clear', ids, callback, scope); this.exec('clear', ids, callback, scope);
...@@ -188,10 +184,6 @@ exports.cancel = function (ids, callback, scope) { ...@@ -188,10 +184,6 @@ exports.cancel = function (ids, callback, scope) {
ids = this.convertIds(ids); ids = this.convertIds(ids);
if (device.platform != 'iOS'&&device.platform != 'Android' ) {
ids = ids[0];
}
this.exec('cancel', ids, callback, scope); this.exec('cancel', ids, callback, scope);
}; };
......
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