fix download at chrome
This commit is contained in:
parent
2c27cc1052
commit
8b506cdb84
2 changed files with 5 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue