aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/util.js
diff options
context:
space:
mode:
authorThomas <tmashuang@gmail.com>2018-04-05 07:26:05 +0800
committerThomas <tmashuang@gmail.com>2018-04-05 07:26:05 +0800
commit18e0a7e4f98fcad3c49fecf94bcfdc9bb1b50e0f (patch)
tree8cd59c4b37b29a77fec601239b93e3a695cc81ef /ui/app/util.js
parentbcb5f14b06959a9fd147361fa341e587b45baa76 (diff)
downloadtangerine-wallet-browser-18e0a7e4f98fcad3c49fecf94bcfdc9bb1b50e0f.tar
tangerine-wallet-browser-18e0a7e4f98fcad3c49fecf94bcfdc9bb1b50e0f.tar.gz
tangerine-wallet-browser-18e0a7e4f98fcad3c49fecf94bcfdc9bb1b50e0f.tar.bz2
tangerine-wallet-browser-18e0a7e4f98fcad3c49fecf94bcfdc9bb1b50e0f.tar.lz
tangerine-wallet-browser-18e0a7e4f98fcad3c49fecf94bcfdc9bb1b50e0f.tar.xz
tangerine-wallet-browser-18e0a7e4f98fcad3c49fecf94bcfdc9bb1b50e0f.tar.zst
tangerine-wallet-browser-18e0a7e4f98fcad3c49fecf94bcfdc9bb1b50e0f.zip
Add target=_blank exportAsFile
Diffstat (limited to 'ui/app/util.js')
-rw-r--r--ui/app/util.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/app/util.js b/ui/app/util.js
index 800ccb218..0888bff0a 100644
--- a/ui/app/util.js
+++ b/ui/app/util.js
@@ -271,6 +271,7 @@ function exportAsFile (filename, data) {
window.navigator.msSaveBlob(blob, filename)
} else {
const elem = window.document.createElement('a')
+ elem.target = "_blank"
elem.href = window.URL.createObjectURL(blob)
elem.download = filename
document.body.appendChild(elem)