Update download.php

pull/8/head
SuperDev 3 years ago committed by GitHub
parent dace69390a
commit eb673fc36a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);
}
</script>'; ?>

Loading…
Cancel
Save