Skip to content

Commit

Permalink
Inverted cocoon adsEnabled check
Browse files Browse the repository at this point in the history
  • Loading branch information
Bram Willem van der Kuip committed Feb 13, 2020
1 parent 9e282a5 commit d3f05c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Providers/cocoon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d3f05c4

Please sign in to comment.