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();
if (jp.status === "continue") {
changeDownloadButton(2, '>>>');
window.open(j.url, '_blank');
if (isMobile) {
window.location.href = j.url;
} else window.open(j.url, '_blank');
setTimeout(() => { changeButton(1) }, 2500);
} else {
changeButton(0, jp.text);