mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-29 05:41:03 +00:00
.
This commit is contained in:
@@ -44,7 +44,9 @@ export class DownloadManager {
|
|||||||
const urlObj = new URL(url);
|
const urlObj = new URL(url);
|
||||||
const filename = urlObj.pathname.split('/').pop();
|
const filename = urlObj.pathname.split('/').pop();
|
||||||
if (filename?.length) return filename;
|
if (filename?.length) return filename;
|
||||||
} catch {}
|
} catch {
|
||||||
|
// Invalid URL
|
||||||
|
}
|
||||||
|
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user