fix streamable downloads on ios

This commit is contained in:
wukko 2023-08-15 18:48:57 +06:00
parent 2302c1dbe4
commit 2038050a2d

View file

@ -412,7 +412,9 @@ async function download(url) {
let jp = await res.json(); let jp = await res.json();
if (jp.status === "continue") { if (jp.status === "continue") {
changeDownloadButton(2, '>>>'); changeDownloadButton(2, '>>>');
window.open(j.url, '_blank'); if (isMobile) {
window.location.href = j.url;
} else window.open(j.url, '_blank');
setTimeout(() => { changeButton(1) }, 2500); setTimeout(() => { changeButton(1) }, 2500);
} else { } else {
changeButton(0, jp.text); changeButton(0, jp.text);