From 2bd244a5364fbb362696e5ef0acb0fca6ec93858 Mon Sep 17 00:00:00 2001 From: Ibby Hadeed Date: Fri, 19 May 2017 09:24:19 -0400 Subject: [PATCH] fix(admob-free): use otherPromise to fix browser development --- src/@ionic-native/plugins/admob-free/index.ts | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/@ionic-native/plugins/admob-free/index.ts b/src/@ionic-native/plugins/admob-free/index.ts index a32d19574..bcd059b3d 100644 --- a/src/@ionic-native/plugins/admob-free/index.ts +++ b/src/@ionic-native/plugins/admob-free/index.ts @@ -192,28 +192,28 @@ export class AdMobFreeBanner { * Hide the banner. * @return {Promise} */ - @Cordova({ sync: true }) + @Cordova({ otherPromise: true }) hide(): Promise { return; } /** * Create banner. * @return {Promise} */ - @Cordova({ sync: true }) + @Cordova({ otherPromise: true }) prepare(): Promise { return; } /** * Remove the banner. * @return {Promise} */ - @Cordova({ sync: true }) + @Cordova({ otherPromise: true }) remove(): Promise { return; } /** * Show the banner. * @return {Promise} */ - @Cordova({ sync: true }) + @Cordova({ otherPromise: true }) show(): Promise { return; } } @@ -240,21 +240,21 @@ export class AdMobFreeInterstitial { * Check if interstitial is ready * @return {Promise} */ - @Cordova({ sync: true }) + @Cordova({ otherPromise: true }) isReady(): Promise { return; } /** * Prepare interstitial * @return {Promise} */ - @Cordova({ sync: true }) + @Cordova({ otherPromise: true }) prepare(): Promise { return; } /** * Show the interstitial * @return {Promise} */ - @Cordova({ sync: true }) + @Cordova({ otherPromise: true }) show(): Promise { return; } } @@ -281,21 +281,21 @@ export class AdMobFreeRewardVideo { * Check if reward video is ready * @return {Promise} */ - @Cordova({ sync: true }) + @Cordova({ otherPromise: true }) isReady(): Promise { return; } /** * Prepare reward video * @return {Promise} */ - @Cordova({ sync: true }) + @Cordova({ otherPromise: true }) prepare(): Promise { return; } /** * Show the reward video * @return {Promise} */ - @Cordova({ sync: true }) + @Cordova({ otherPromise: true }) show(): Promise { return; } }