mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #3882 from MetaMask/i#3791
Fixes download file buttons
This commit is contained in:
commit
36f85c4f84
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
## Current Master
|
## Current Master
|
||||||
|
|
||||||
|
- Fix Download State Logs button [#3791](https://github.com/MetaMask/metamask-extension/issues/3791)
|
||||||
|
|
||||||
## 4.5.3 Wed Apr 04 2018
|
## 4.5.3 Wed Apr 04 2018
|
||||||
|
|
||||||
- Fix bug where checksum address are messing with balance issue [#3843](https://github.com/MetaMask/metamask-extension/issues/3843)
|
- Fix bug where checksum address are messing with balance issue [#3843](https://github.com/MetaMask/metamask-extension/issues/3843)
|
||||||
|
@ -231,6 +231,7 @@ function exportAsFile (filename, data) {
|
|||||||
window.navigator.msSaveBlob(blob, filename)
|
window.navigator.msSaveBlob(blob, filename)
|
||||||
} else {
|
} else {
|
||||||
const elem = window.document.createElement('a')
|
const elem = window.document.createElement('a')
|
||||||
|
elem.target = '_blank'
|
||||||
elem.href = window.URL.createObjectURL(blob)
|
elem.href = window.URL.createObjectURL(blob)
|
||||||
elem.download = filename
|
elem.download = filename
|
||||||
document.body.appendChild(elem)
|
document.body.appendChild(elem)
|
||||||
|
@ -271,6 +271,7 @@ function exportAsFile (filename, data) {
|
|||||||
window.navigator.msSaveBlob(blob, filename)
|
window.navigator.msSaveBlob(blob, filename)
|
||||||
} else {
|
} else {
|
||||||
const elem = window.document.createElement('a')
|
const elem = window.document.createElement('a')
|
||||||
|
elem.target = '_blank'
|
||||||
elem.href = window.URL.createObjectURL(blob)
|
elem.href = window.URL.createObjectURL(blob)
|
||||||
elem.download = filename
|
elem.download = filename
|
||||||
document.body.appendChild(elem)
|
document.body.appendChild(elem)
|
||||||
|
Loading…
Reference in New Issue
Block a user