fix backup file download

This commit is contained in:
Gabriel Bazán 2016-05-20 11:10:53 -03:00 committed by Javier
commit 0c786ebd6a
2 changed files with 6 additions and 26 deletions

View file

@ -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) {