Skip to content

Commit

Permalink
updated game.js to use new /api/game/gamestate endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
rmawong committed Feb 22, 2014
1 parent eb11343 commit 517de40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/static/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ function load_balls() {
];

$.ajax({
url: "/api/game/ballsontable",
url: "/api/game/gamestate",
success: function(data) {
$.each(data["data"], function(index, value) {
$.each(data["data"]["balls_on_table"], function(index, value) {
ballsInPlay[indexToId[value]] = true;
});
$.each(ballsInPlay, function(index, value) {
Expand Down

0 comments on commit 517de40

Please sign in to comment.