From b8ce42719a61428af908e4fc7531dbd09393c2cc Mon Sep 17 00:00:00 2001 From: sergesoroka Date: Wed, 4 Sep 2024 08:31:28 +0200 Subject: [PATCH] Download the file button, using domain or query params --- components/h5web/h5web.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/h5web/h5web.jsx b/components/h5web/h5web.jsx index b2fbc70..18409f4 100755 --- a/components/h5web/h5web.jsx +++ b/components/h5web/h5web.jsx @@ -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);