Remove shell dependences. Remove unnecessary plugins. Remove unnecessary directives
This commit is contained in:
parent
a1159189ba
commit
e7d8421c4d
11 changed files with 1 additions and 190 deletions
|
|
@ -14,25 +14,6 @@ BackupService.prototype._download = function(ew, walletName, filename) {
|
|||
type: 'text/plain;charset=utf-8'
|
||||
});
|
||||
|
||||
|
||||
// show a native save dialog if we are in the shell
|
||||
// and pass the wallet to the shell to convert to node Buffer
|
||||
if (window.cshell) {
|
||||
return window.cshell.send('backup:download', {
|
||||
name: walletName,
|
||||
wallet: ew
|
||||
});
|
||||
}
|
||||
|
||||
// throw an email intent if we are in the mobile version
|
||||
if (window.cordova) {
|
||||
var name = wallet.name ? wallet.name + ' ' : '';
|
||||
return window.plugin.email.open({
|
||||
subject: 'Copay - ' + name + 'Wallet ' + 'Backup',
|
||||
body: 'Here is the encrypted backup of the wallet ' + wallet.id,
|
||||
attachments: ['base64:' + filename + '//' + btoa(ew)]
|
||||
});
|
||||
}
|
||||
this.notifications.success('Backup created', 'Encrypted backup file saved');
|
||||
|
||||
// otherwise lean on the browser implementation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue