fix download at chrome

This commit is contained in:
Matias Alejo Garcia 2015-05-28 14:55:48 -03:00
commit 8b506cdb84
2 changed files with 5 additions and 1 deletions

View file

@ -27,6 +27,10 @@ angular
['debug', 'info', 'warn', 'error', 'log'].forEach(function(level) {
var orig = $delegate[level];
$delegate[level] = function() {
if (level=='error')
console.log(arguments);
var args = [].slice.call(arguments);
if (!Array.isArray(args)) args = [args];
args = args.map(function(v) {

View file

@ -40,7 +40,7 @@ angular.module('copayApp.services')
var a = document.createElement("a");
document.body.appendChild(a);
a.style = "display: none";
a.style.display = "none";
var blob = new NewBlob(ew, 'text/plain;charset=utf-8');
var url = window.URL.createObjectURL(blob);