Skip to content

Commit

Permalink
Merge pull request #3770 from matiu/ref/log-mobile
Browse files Browse the repository at this point in the history
do not print read values from storage in mobile
  • Loading branch information
cmgustavo committed Jan 15, 2016
2 parents 783e634 + e49459d commit a8f5aa0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/js/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ angular
// Trim output in mobile
if (window.cordova) {
v = v.toString();
if (v.length > 1000) {
v = v.substr(0, 997) + '...';
if (v.length > 300) {
v = v.substr(0, 297) + '...';
}
}
} catch (e) {
Expand Down
4 changes: 1 addition & 3 deletions src/js/services/fileStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ angular.module('copayApp.services')
var reader = new FileReader();

reader.onloadend = function(e) {
if (this.result)
$log.debug("Read: ", this.result);
return cb(null, this.result)
}

Expand Down Expand Up @@ -77,7 +75,7 @@ angular.module('copayApp.services')
if (lodash.isObject(v))
v = JSON.stringify(v);

if (!lodash.isString(v)){
if (!lodash.isString(v)) {
v = v.toString();
}

Expand Down

0 comments on commit a8f5aa0

Please sign in to comment.