web: saving cobalt streams via action chooser

This commit is contained in:
wukko
2023-12-02 22:51:08 +06:00
parent afab7f94a7
commit 83d82f5da9
3 changed files with 11 additions and 7 deletions

View File

@@ -423,9 +423,16 @@ async function download(url) {
let jp = await res.json();
if (jp.status === "continue") {
changeDownloadButton(2, '>>>');
if (isMobile || isSafari) {
window.location.href = j.url;
} else window.open(j.url, '_blank');
if (sGet("downloadPopup") === "true") {
popup('download', 1, j.url)
setTimeout(() => {
popup('download', 0);
}, 90000)
} else {
if (isMobile || isSafari) {
window.location.href = j.url;
} else window.open(j.url, '_blank');
}
setTimeout(() => { changeButton(1) }, 2500);
} else {
changeButton(0, jp.text);