From 439c6447027edd111edad764b7027a468de05938 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Fri, 4 Jan 2019 14:05:53 +0000 Subject: [PATCH] Fixed an API validation error in the `chooseContext` method. Fix #4248 --- CHANGELOG.md | 1 + plugins/fbinstant/src/FacebookInstantGamesPlugin.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c2b436659..118854dba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ * Showing an ad will emit the `adfinished` event when the ad is closed, previously this event was called `showad` but the new name better reflects what has happened. * The Facebook Plugin is now available in the `Phaser.Scene` class template under the `facebook` property (thanks @bryanwood) * Fixed the `Leaderboard.getScores` method to now take the arguments into account. Fix #4271 (thanks @Oramy) +* Fixed an API validation error in the `chooseContext` method. Fix #4248 (thanks @yadurajiv) ### Keyboard Input - New Features diff --git a/plugins/fbinstant/src/FacebookInstantGamesPlugin.js b/plugins/fbinstant/src/FacebookInstantGamesPlugin.js index 21ce8c54d..e35976812 100644 --- a/plugins/fbinstant/src/FacebookInstantGamesPlugin.js +++ b/plugins/fbinstant/src/FacebookInstantGamesPlugin.js @@ -1322,7 +1322,7 @@ var FacebookInstantGamesPlugin = new Class({ */ chooseContext: function (options) { - if (!this.checkAPI('contextChoseAsync')) + if (!this.checkAPI('contextChooseAsync')) { return this; }