diff --git a/src/js/routes.js b/src/js/routes.js index 156acca66..469d7aeb5 100644 --- a/src/js/routes.js +++ b/src/js/routes.js @@ -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) { diff --git a/src/js/services/fileStorage.js b/src/js/services/fileStorage.js index 3bcc8c2ac..ed4c4552c 100644 --- a/src/js/services/fileStorage.js +++ b/src/js/services/fileStorage.js @@ -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(); }