Skip to content

Commit

Permalink
Reduce aplite body text, remove limit on basalt
Browse files Browse the repository at this point in the history
  • Loading branch information
dnschneid committed Jan 16, 2016
1 parent 2919036 commit cef32ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ var Util = {
if (!body || !body.data) {
return '';
}
body.data = Util.decode64(body.data, 1024);
var limit = Pebble.getActiveWatchInfo().platform == 'aplite' ? 768 : 0;
body.data = Util.decode64(body.data, limit);
return body.html ? Util.decodeHTML(body.data) : body.data;
} else if (message.mimeType.substring(0, 4) == 'text' && message.body.data) {
return { html: message.mimeType.slice(-4) == 'html', data: message.body.data };
Expand Down

1 comment on commit cef32ef

@dnschneid
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.