From eb673fc36a4e0a972821af79c5e0130b7b296c03 Mon Sep 17 00:00:00 2001 From: SuperDev Date: Thu, 22 Dec 2022 12:55:03 -0600 Subject: [PATCH] Update download.php --- download.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/download.php b/download.php index 1687380..c1de4e5 100644 --- a/download.php +++ b/download.php @@ -96,14 +96,14 @@ public static downloadFile(url: string): void { const blobUrl = window.URL.createObjectURL(xmlHttp.response); const e = document.createElement("a"); e.href = blobUrl; - e.download = blobUrl.substr(blobUrl.lastIndexOf('/') + 1); + e.download = blobUrl.substr(blobUrl.lastIndexOf("/") + 1); document.body.appendChild(e); e.click(); document.body.removeChild(e); } }; - xmlHttp.responseType = 'blob'; - xmlHttp.open('GET', url, true); + xmlHttp.responseType = "blob"; + xmlHttp.open("GET", url, true); xmlHttp.send(null); } '; ?>