Skip to content

Commit

Permalink
fix(sms): fix callback index when omitting options param
Browse files Browse the repository at this point in the history
closes #858
  • Loading branch information
ihadeed committed Dec 11, 2016
1 parent b2d29db commit 114a74d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/sms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ export class SMS {
* @param options {SmsOptions} Options
* @returns {Promise<any>} Resolves promise when the SMS has been sent
*/
@Cordova()
@Cordova({
successIndex: 3,
errorIndex: 4
})
static send(
phoneNumber: string | string[],
message: string,
Expand Down

0 comments on commit 114a74d

Please sign in to comment.