mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-04 15:29:59 +00:00
fix streamable downloads on ios
This commit is contained in:
parent
2302c1dbe4
commit
2038050a2d
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue