Merge branch 'wallet/sprint/19' into wallet/task/416

This commit is contained in:
Jean-Baptiste Dominguez 2018-07-16 14:25:03 +09:00 committed by GitHub
commit 8442248e96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 7049 additions and 27 deletions

View file

@ -427,6 +427,15 @@ angular.module('copayApp.services')
}, function(err, secret) {
if (err) return bwcError.cb(err, gettextCatalog.getString('Error creating wallet'), cb);
var channel = "firebase";
if (platformInfo.isNW) {
channel = "ga";
}
var log = new window.BitAnalytics.LogEvent("wallet_created", [{
"coin": opts.coin
}], [channel]);
window.BitAnalytics.LogEventHandlers.postEvent(log);
return cb(null, walletClient, secret);
});
});