fix backup file download
This commit is contained in:
parent
839344a0b5
commit
0c786ebd6a
2 changed files with 6 additions and 26 deletions
|
|
@ -694,19 +694,6 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
|
||||
self.csvHistory = function() {
|
||||
|
||||
function saveFile(name, data) {
|
||||
var chooser = document.querySelector(name);
|
||||
chooser.addEventListener("change", function(evt) {
|
||||
var fs = require('fs');
|
||||
fs.writeFile(this.value, data, function(err) {
|
||||
if (err) {
|
||||
$log.debug(err);
|
||||
}
|
||||
});
|
||||
}, false);
|
||||
chooser.click();
|
||||
}
|
||||
|
||||
function formatDate(date) {
|
||||
var dateObj = new Date(date);
|
||||
if (!dateObj) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue