Update download.php

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

@ -94,7 +94,7 @@ public static downloadFile(url: string): void {
xmlHttp.onreadystatechange = () => {
if (xmlHttp.readyState === 4 && xmlHttp.status === 200) {
const blobUrl = window.URL.createObjectURL(xmlHttp.response);
const e = document.createElement('a');
const e = document.createElement("a");
e.href = blobUrl;
e.download = blobUrl.substr(blobUrl.lastIndexOf('/') + 1);
document.body.appendChild(e);

Loading…
Cancel
Save