Add target=_blank exportAsFile

feature/default_network_editable
Thomas 7 years ago
parent bcb5f14b06
commit 18e0a7e4f9
  1. 1
      old-ui/app/util.js
  2. 1
      ui/app/util.js

@ -231,6 +231,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)

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

Loading…
Cancel
Save