Skip to content

Commit

Permalink
Merge pull request #19 from orange-games/dev
Browse files Browse the repository at this point in the history
Banner release work-around
  • Loading branch information
AleBles authored Apr 24, 2017
2 parents a18ae31 + 0317ddc commit 8a744f2
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 9 deletions.
12 changes: 9 additions & 3 deletions build/phaser-ads.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/phaser-ads.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions build/phaser-ads.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@orange-games/phaser-ads",
"author": "OrangeGames",
"version": "2.0.8",
"version": "2.0.9",
"description": "A Phaser plugin for providing nice ads integration in your phaser.io game",
"contributors": [
{
Expand Down
8 changes: 7 additions & 1 deletion ts/Providers/Cocoon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,13 @@ module PhaserAds {
}

if (adType === CocoonAdType.banner && null !== this.banner) {
this.cocoonProvider.releaseBanner(this.banner);
//Releasing banners will fail on cocoon due to:
// https://github.com/ludei/atomic-plugins-ads/pull/12
try {
this.cocoonProvider.releaseBanner(this.banner);
} catch (e) {
//silently ignore
}
this.banner = null;
this.bannerShowable = false;
}
Expand Down

0 comments on commit 8a744f2

Please sign in to comment.