Commit 517adf2f1639351a502ce4900f1832001228d263

Authored by Tetranoir
1 parent c29a5bddf4

listening for scorechange, doesnt do anything

Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff

scripts/FeedController.js View file @ 517adf2
... ... @@ -122,7 +122,9 @@
122 122 data = JSON.parse(e.data);
123 123 if (data.event_type == 'new_card') {
124 124 $scope.add(data.flashcard);
125   - }
  125 + } else if (data.event_type == 'score_change') {
  126 + //
  127 + }
126 128 };
127 129 ws.onerror = function(e) {
128 130 console.error(e);