This commit is contained in:
subnub
2025-02-21 13:58:16 -05:00
parent 56ba2b3f6c
commit 5acdf7c845
+13 -11
View File
@@ -72,17 +72,19 @@ export const downloadFileAPI = async (fileID: string) => {
const url = `${getBackendURL()}/file-service/download/${fileID}`;
if (!isPwa()) {
const link = document.createElement("a");
document.body.appendChild(link);
link.href = url;
link.setAttribute("type", "hidden");
link.setAttribute("download", "true");
link.click();
} else {
alert("PWA");
window.open(url);
}
window.open(url);
// if (!isPwa()) {
// const link = document.createElement("a");
// document.body.appendChild(link);
// link.href = url;
// link.setAttribute("type", "hidden");
// link.setAttribute("download", "true");
// link.click();
// } else {
// alert("PWA");
// window.open(url);
// }
};
export const getVideoTokenAPI = async () => {