Skip to content

Commit

Permalink
Phone log decoding needs a TextDecoder.
Browse files Browse the repository at this point in the history
  • Loading branch information
Katharine committed Oct 22, 2014
1 parent 7479924 commit 714c5d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ide/static/ide/js/libpebble/libpebble.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ Pebble = function(token) {
self.trigger("status", result[0]);
return;
} else if(origin == 2) {
var decoder = new TextDecoder('utf-8');
var phone_log = decoder.decode(data.subarray(1));
self.trigger('phone_log', phone_log);
} else if(origin == 1) {
Expand Down

0 comments on commit 714c5d9

Please sign in to comment.