mirror of https://github.com/BTCPrivate/copay.git
use logging system
This commit is contained in:
parent
6326abebe2
commit
6a4409ad85
|
@ -31,7 +31,7 @@ PluginManager.prototype._register = function(obj, name) {
|
||||||
var type = obj.type;
|
var type = obj.type;
|
||||||
var kind = PluginManager.TYPE[type];
|
var kind = PluginManager.TYPE[type];
|
||||||
|
|
||||||
preconditions.checkArgument(kind, 'Plugin has unkown type' + name);
|
preconditions.checkArgument(kind, 'Plugin has unknown type' + name);
|
||||||
preconditions.checkState(kind !== PluginManager.KIND_UNIQUE || !this.registered[type], 'Plugin kind already registered: ' + name);
|
preconditions.checkState(kind !== PluginManager.KIND_UNIQUE || !this.registered[type], 'Plugin kind already registered: ' + name);
|
||||||
|
|
||||||
if (kind === PluginManager.KIND_UNIQUE) {
|
if (kind === PluginManager.KIND_UNIQUE) {
|
||||||
|
|
|
@ -7,7 +7,7 @@ angular.module('copayApp.services').factory('pluginManager', function(angularLoa
|
||||||
for(var ii in scripts){
|
for(var ii in scripts){
|
||||||
var src = scripts[ii].src;
|
var src = scripts[ii].src;
|
||||||
|
|
||||||
console.log('\tLoading ',src); //TODO
|
log.info('\tLoading ',src); //TODO
|
||||||
angularLoad.loadScript(src)
|
angularLoad.loadScript(src)
|
||||||
.then(scripts[ii].then || null)
|
.then(scripts[ii].then || null)
|
||||||
.catch(function() {
|
.catch(function() {
|
||||||
|
|
Loading…
Reference in New Issue