Merge pull request #3770 from matiu/ref/log-mobile

do not print read values from storage in mobile
This commit is contained in:
Gustavo Maximiliano Cortez 2016-01-15 11:13:49 -03:00
commit a8f5aa0f62
2 changed files with 3 additions and 5 deletions

View file

@ -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) {

View file

@ -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)
}
@ -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();
}