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:
Richard Davey 2020-01-14 22:16:41 +00:00
parent 6a35f2c52e
commit 32c01038e0

View file

@ -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;
}
}