web/Omnibox: download right away after pressing paste

cuz turnstile is awaited in api lib now
This commit is contained in:
wukko 2025-05-23 22:44:05 +06:00
parent c08352bda9
commit 71ea3239a7
No known key found for this signature in database
GPG Key ID: 3E30B3F26C7B4AA2

View File

@ -92,11 +92,9 @@
if (linkMatch) { if (linkMatch) {
$link = linkMatch[0].split('')[0]; $link = linkMatch[0].split('')[0];
if (!isBotCheckOngoing) {
await tick(); // wait for button to render await tick(); // wait for button to render
savingHandler({ url: $link }); savingHandler({ url: $link });
} }
}
}; };
const changeDownloadMode = (mode: DownloadModeOption) => { const changeDownloadMode = (mode: DownloadModeOption) => {