mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
FacebookInstantGamesPlugin.showAd
and showVideo
will now break out of the ad iteration search once a valid ad has been found and called. Previously, it would carry on interating if the async didn't complete quickly. Fix #4888
This commit is contained in:
parent
6a35f2c52e
commit
32c01038e0
1 changed files with 4 additions and 0 deletions
|
@ -2148,6 +2148,8 @@ var FacebookInstantGamesPlugin = new Class({
|
|||
|
||||
_this.emit('adshowerror', e, ad);
|
||||
});
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2197,6 +2199,8 @@ var FacebookInstantGamesPlugin = new Class({
|
|||
|
||||
_this.emit('adshowerror', e, ad);
|
||||
});
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue