mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-24 02:22:08 +02:00
fix streamable downloads on ios
This commit is contained in:
parent
2302c1dbe4
commit
2038050a2d
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user