best way to save what you love
Svelte collaborationdownloaderinstagramjavascriptmusicredditsocial-mediasoundcloudsveltetiktoktwittertypescriptvideovimeovkwebappyoutubeyoutube-downloader
web/download: assume userActivation expired if agent doesn't support it
wukkod7454a073b86
diff --git a/web/src/lib/download.ts b/web/src/lib/download.tsindex b0c80d31..78e465de 100644--- a/web/src/lib/download.ts+++ b/web/src/lib/download.ts@@ -77,8 +77,10 @@ export const downloadFile = ({ url, file }: { url?: string, file?: File }) => {navigator.userActivation.isActive makes sure that we're still able toinvoke an action without the user agent interrupting it.if not, we show a saving dialog for user to re-invoke that action.++ if browser is old or doesn't support this API, we just assume that it expired.*/- if (!navigator.userActivation.isActive) {+ if (!navigator?.userActivation?.isActive) {return openSavingDialog({url,file,