Skip to content

Commit

Permalink
Download the file button, using domain or query params
Browse files Browse the repository at this point in the history
  • Loading branch information
sergesoroka committed Sep 4, 2024
1 parent 978f9ad commit b8ce427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/h5web/h5web.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function H5web({ domain }) {
hash ? hash : '/'

const downloadFile = () => {
fetch(`${import.meta.env.VITE_BaseURL}download?what=h5&domain=${domain}`)
fetch(`${import.meta.env.VITE_BaseURL}download?what=h5&domain=${domain ? domain : h5webParams}`)
.then(resp => resp.blob())
.then(blob => {
const url = window.URL.createObjectURL(blob);
Expand Down

0 comments on commit b8ce427

Please sign in to comment.