Skip to content

Commit

Permalink
Context.players set to wrong data type (#90)
Browse files Browse the repository at this point in the history
Context.players is set to wrong data type and causes an error when trying to use fbinstant.get_players in a multiplayer context
  • Loading branch information
vandutch authored Apr 18, 2021
1 parent dd7e85e commit 868932d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fbinstant/lib/web/library_fbinstant.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var FBInstantLibrary = {
$Context: {
players: [],
setPlayers: function(players_to_set) {
Context.players = {};
Context.players = [];
for (var i=0; i<players_to_set.length; i++) {
player = players_to_set[i];
Context.players.push({
Expand Down

0 comments on commit 868932d

Please sign in to comment.