This commit is contained in:
b1ek 2023-05-01 20:35:45 +10:00
parent 2e05e5d740
commit ee68c78021
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ Usage: ${argv[0]} [URL] [-O out.file] [-V] [-Q] [-s]
let file; let file;
let req = new XMLHttpRequest(); let req = new XMLHttpRequest();
req.open('GET', 'http://cors.blek.codes/' + url, true); req.open('GET', window.location.protocol + '//cors.blek.codes/' + url, true);
req.responseType = 'arraybuffer'; req.responseType = 'arraybuffer';
req.onprogress = progress; req.onprogress = progress;
req.onload = (e) => { req.onload = (e) => {
@ -63,4 +63,4 @@ Usage: ${argv[0]} [URL] [-O out.file] [-V] [-Q] [-s]
return; return;
} }