do not trim output in debuging
This commit is contained in:
parent
0bdb92b583
commit
460b65d9ea
1 changed files with 30 additions and 20 deletions
|
|
@ -43,9 +43,13 @@ angular
|
||||||
else
|
else
|
||||||
v = JSON.stringify(v);
|
v = JSON.stringify(v);
|
||||||
}
|
}
|
||||||
|
// Trim output in mobile
|
||||||
|
if ( window.cordova ) {
|
||||||
v = v.toString();
|
v = v.toString();
|
||||||
if (v.length > 200)
|
if (v.length > 1000) {
|
||||||
v = v.substr(0, 197) + '...';
|
v = v.substr(0, 997) + '...';
|
||||||
|
}
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log('Error at log decorator:', e);
|
console.log('Error at log decorator:', e);
|
||||||
v = 'undefined';
|
v = 'undefined';
|
||||||
|
|
@ -85,7 +89,9 @@ angular
|
||||||
$scope.create = function(noWallet) {
|
$scope.create = function(noWallet) {
|
||||||
$scope.creatingProfile = true;
|
$scope.creatingProfile = true;
|
||||||
|
|
||||||
profileService.create({noWallet: noWallet}, function(err) {
|
profileService.create({
|
||||||
|
noWallet: noWallet
|
||||||
|
}, function(err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
$scope.creatingProfile = false;
|
$scope.creatingProfile = false;
|
||||||
$log.warn(err);
|
$log.warn(err);
|
||||||
|
|
@ -100,7 +106,8 @@ angular
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
$stateProvider
|
$stateProvider
|
||||||
.state('disclaimer', {
|
.state('disclaimer', {
|
||||||
url: '/disclaimer',
|
url: '/disclaimer',
|
||||||
|
|
@ -438,7 +445,9 @@ angular
|
||||||
if (nodeWebkit.isDefined()) {
|
if (nodeWebkit.isDefined()) {
|
||||||
var gui = require('nw.gui');
|
var gui = require('nw.gui');
|
||||||
var win = gui.Window.get();
|
var win = gui.Window.get();
|
||||||
var nativeMenuBar = new gui.Menu({ type: "menubar" });
|
var nativeMenuBar = new gui.Menu({
|
||||||
|
type: "menubar"
|
||||||
|
});
|
||||||
try {
|
try {
|
||||||
nativeMenuBar.createMacBuiltin("Copay");
|
nativeMenuBar.createMacBuiltin("Copay");
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
@ -516,7 +525,8 @@ angular
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function cleanUpLater(e, e2) {
|
function cleanUpLater(e, e2) {
|
||||||
var cleanedUp = false, timeoutID;
|
var cleanedUp = false,
|
||||||
|
timeoutID;
|
||||||
var cleanUp = function() {
|
var cleanUp = function() {
|
||||||
if (cleanedUp) return;
|
if (cleanedUp) return;
|
||||||
cleanedUp = true;
|
cleanedUp = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue