mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-31 18:49:43 +08:00
fix(admob-free): use otherPromise to fix browser development
This commit is contained in:
parent
64bff1bbed
commit
2bd244a536
@ -192,28 +192,28 @@ export class AdMobFreeBanner {
|
|||||||
* Hide the banner.
|
* Hide the banner.
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova({ sync: true })
|
@Cordova({ otherPromise: true })
|
||||||
hide(): Promise<any> { return; }
|
hide(): Promise<any> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create banner.
|
* Create banner.
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova({ sync: true })
|
@Cordova({ otherPromise: true })
|
||||||
prepare(): Promise<any> { return; }
|
prepare(): Promise<any> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove the banner.
|
* Remove the banner.
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova({ sync: true })
|
@Cordova({ otherPromise: true })
|
||||||
remove(): Promise<any> { return; }
|
remove(): Promise<any> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Show the banner.
|
* Show the banner.
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova({ sync: true })
|
@Cordova({ otherPromise: true })
|
||||||
show(): Promise<any> { return; }
|
show(): Promise<any> { return; }
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -240,21 +240,21 @@ export class AdMobFreeInterstitial {
|
|||||||
* Check if interstitial is ready
|
* Check if interstitial is ready
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova({ sync: true })
|
@Cordova({ otherPromise: true })
|
||||||
isReady(): Promise<any> { return; }
|
isReady(): Promise<any> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prepare interstitial
|
* Prepare interstitial
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova({ sync: true })
|
@Cordova({ otherPromise: true })
|
||||||
prepare(): Promise<any> { return; }
|
prepare(): Promise<any> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Show the interstitial
|
* Show the interstitial
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova({ sync: true })
|
@Cordova({ otherPromise: true })
|
||||||
show(): Promise<any> { return; }
|
show(): Promise<any> { return; }
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -281,21 +281,21 @@ export class AdMobFreeRewardVideo {
|
|||||||
* Check if reward video is ready
|
* Check if reward video is ready
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova({ sync: true })
|
@Cordova({ otherPromise: true })
|
||||||
isReady(): Promise<any> { return; }
|
isReady(): Promise<any> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prepare reward video
|
* Prepare reward video
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova({ sync: true })
|
@Cordova({ otherPromise: true })
|
||||||
prepare(): Promise<any> { return; }
|
prepare(): Promise<any> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Show the reward video
|
* Show the reward video
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova({ sync: true })
|
@Cordova({ otherPromise: true })
|
||||||
show(): Promise<any> { return; }
|
show(): Promise<any> { return; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user