Skip to content

Commit

Permalink
Token fixes (#71)
Browse files Browse the repository at this point in the history
* Adapt to new download and verification policies
  • Loading branch information
weearc authored Jan 29, 2024
1 parent 1eadb5e commit 39729bf
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions components/DownloadModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,21 @@ export default {
return
}
const name = url.slice(url.lastIndexOf("/") + 1)
console.log(url,"====> url")
const a = document.createElement("a")
this.verifyPre(url)
a.setAttribute("href", this.selectedVersionUrl)
const location = window.location
const params = {
protocol: location.protocol,
host: location.host,
path: url
}
const requestsURL = `${params.protocol}//${params.host}${params.path}`
window.open(requestsURL, '_blank')
// window.open()
// const a = document.createElement("a")
// this.verifyPre(url)
// a.setAttribute("href", this.selectedVersionUrl)
// a.setAttribute("download", name)
a.click()
a.remove()
// a.click()
// a.remove()
this.$modal.hide('download-dialog')
},
async verifyPre(key) {
Expand Down

0 comments on commit 39729bf

Please sign in to comment.