Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Commit

Permalink
Browser: always call success on unimplemented methods
Browse files Browse the repository at this point in the history
  • Loading branch information
macdonst committed Jul 22, 2016
1 parent e1d8774 commit 1b8bf26
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions www/browser/push.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ PushNotification.prototype.setApplicationIconBadgeNumber = function(successCallb
return;
}

exec(successCallback, errorCallback, 'PushNotification', 'setApplicationIconBadgeNumber', [{badge: badge}]);
successCallback();
};

/**
Expand All @@ -164,7 +164,7 @@ PushNotification.prototype.getApplicationIconBadgeNumber = function(successCallb
return;
}

exec(successCallback, errorCallback, 'PushNotification', 'getApplicationIconBadgeNumber', []);
successCallback();
};

/**
Expand All @@ -184,7 +184,7 @@ PushNotification.prototype.clearAllNotifications = function(successCallback, err
return;
}

exec(successCallback, errorCallback, 'PushNotification', 'clearAllNotifications', []);
successCallback();
};

/**
Expand Down Expand Up @@ -268,7 +268,7 @@ PushNotification.prototype.finish = function(successCallback, errorCallback, id)
return;
}

exec(successCallback, errorCallback, 'PushNotification', 'finish', [id]);
successCallback();
};

/*!
Expand All @@ -291,7 +291,7 @@ module.exports = {
},

hasPermission: function(successCallback, errorCallback) {
exec(successCallback, errorCallback, 'PushNotification', 'hasPermission', []);
successCallback(true);
},

unregister: function(successCallback, errorCallback, options) {
Expand Down

0 comments on commit 1b8bf26

Please sign in to comment.