From 0784aa018e06264fe8be30fb0bf8bafe7af58de3 Mon Sep 17 00:00:00 2001 From: subnub Date: Fri, 21 Feb 2025 14:00:33 -0500 Subject: [PATCH] pwa --- src/api/filesAPI.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/filesAPI.ts b/src/api/filesAPI.ts index 6dbbb1d..ba91876 100644 --- a/src/api/filesAPI.ts +++ b/src/api/filesAPI.ts @@ -72,7 +72,7 @@ export const downloadFileAPI = async (fileID: string) => { const url = `${getBackendURL()}/file-service/download/${fileID}`; - window.open(url); + window.location.href = url; // if (!isPwa()) { // const link = document.createElement("a");