Skip to content

Commit

Permalink
fix(iap2): add missing decorator to register function (#1709)
Browse files Browse the repository at this point in the history
* (feat): change iap2 for callbacks

* (fix): register cordova
  • Loading branch information
Andrew Cole authored and ihadeed committed Jun 20, 2017
1 parent a12d7ab commit 91d1bdd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/@ionic-native/plugins/in-app-purchase-2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export class InAppPurchase2 extends IonicNativePlugin {
* @param idOrAlias
*/
@Cordova({ sync: true })
get(idOrAlias: string): IAPProduct { return; };
get(idOrAlias: string): IAPProduct { return; }

/**
* Register error handler
Expand All @@ -310,7 +310,8 @@ export class InAppPurchase2 extends IonicNativePlugin {
* Add or register a product
* @param product {IAPProductOptions}
*/
register(product: IAPProductOptions): void {};
@Cordova({ sync: true})
register(product: IAPProductOptions): void {}

/**
*
Expand Down

0 comments on commit 91d1bdd

Please sign in to comment.