mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-23 18:16:14 +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();
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user