diff --git a/src/Providers/cocoon.ts b/src/Providers/cocoon.ts index 1d15cc0..0a76b5a 100644 --- a/src/Providers/cocoon.ts +++ b/src/Providers/cocoon.ts @@ -31,13 +31,13 @@ export class CocoonAds implements IProvider { constructor(provider: CocoonProvider, config?: any) { // TODO: Add cordova check - if (Cocoon && Cocoon.Ad) { - this.adsEnabled = true - } else { + if (!Cocoon || !Cocoon.Ad) { this.adManager.emit(AdEvents.AD_PROVIDER_LOADED) return } + this.adsEnabled = true + switch (provider) { default: case CocoonProvider.AdMob: