mirror of
https://github.com/billsonnn/nitro-converter.git
synced 2024-11-22 23:50:52 +01:00
404 check.
This commit is contained in:
parent
727c91caf4
commit
e706bc4671
@ -40,6 +40,7 @@ export class FileUtilities
|
||||
if(url.startsWith('http'))
|
||||
{
|
||||
const data = await fetch.default(url);
|
||||
if (data.status === 404) return;
|
||||
|
||||
if(data) content = await data.text();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user