From 2038050a2d5a6a7c4b81e72077ca50267e4e23fe Mon Sep 17 00:00:00 2001 From: wukko Date: Tue, 15 Aug 2023 18:48:57 +0600 Subject: [PATCH] fix streamable downloads on ios --- src/front/cobalt.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/front/cobalt.js b/src/front/cobalt.js index c5a13ef..23ea0e8 100644 --- a/src/front/cobalt.js +++ b/src/front/cobalt.js @@ -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);