Fix possible github API Exceeded error
This commit is contained in:
@@ -154,7 +154,7 @@ const checkDownloaderUpdate = async () => {
|
||||
localInfos,
|
||||
remoteInfos
|
||||
},
|
||||
newReleaseAvailable: localInfos?.version ? parseInt(localInfos.version) !== remoteInfos?.id : remoteInfos?.name || false,
|
||||
newReleaseAvailable: remoteInfos ? localInfos?.version ? parseInt(localInfos.version) !== remoteInfos?.id : remoteInfos?.name || false : false,
|
||||
filsIsPresent: localInfos?.stat ? true : false
|
||||
}
|
||||
} catch(e) {
|
||||
@@ -292,7 +292,7 @@ const getLatestGithubReleaseAssetUrl = async (owner, repo, assetName) => {
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Erreur:', error.message);
|
||||
throw error;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user