do not print read values from storage in mobile
This commit is contained in:
parent
26a53c79bb
commit
e49459dc7f
2 changed files with 3 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue