fix store config

This commit is contained in:
Matias Alejo Garcia 2015-04-26 20:13:02 -03:00
commit e38f9a4611
5 changed files with 14 additions and 8 deletions

View file

@ -43,11 +43,14 @@ angular
}
return v;
});
historicLog.add(level, args.join(' '));
if (window.cordova)
console.log(args.join(' '));
orig.apply(null, args)
try {
if (window.cordova)
console.log(args.join(' '));
orig.apply(null, args)
historicLog.add(level, args.join(' '));
} catch (e) {
console.log('Error at log decorator:', e);
}
};
});
return $delegate;