This commit is contained in:
Wkeynhk
2025-12-26 01:25:56 +03:00
parent 067f7a00be
commit 7f0dc5eee4

View File

@@ -44,7 +44,9 @@ export class DownloadManager {
const urlObj = new URL(url);
const filename = urlObj.pathname.split('/').pop();
if (filename?.length) return filename;
} catch {}
} catch {
// Invalid URL
}
return undefined;
}