Remove email backup feature

This commit is contained in:
Yemel Jardi 2014-06-19 15:54:12 -03:00
commit 7847bdcb2c
4 changed files with 2 additions and 63 deletions

View file

@ -29,22 +29,4 @@ BackupService.prototype.download = function(wallet) {
saveAs(blob, filename);
};
BackupService.prototype.sendEmail = function(email, wallet) {
var ew = wallet.toEncryptedObj();
var body = ew;
var subject = this.getName(wallet);
var href = 'mailto:' + email + '?' + 'subject=[Copay Backup] ' + subject + '&' + 'body=' + body;
if (window.cshell) {
return window.cshell.send('backup:email', href);
}
var newWin = window.open(href, '_blank', 'scrollbars=yes,resizable=yes,width=10,height=10');
if (newWin) {
setTimeout(function() {
newWin.close();
}, 1000);
}
};
angular.module('copayApp.services').service('backupService', BackupService);