fix downloads page
This commit is contained in:
parent
8838b60e97
commit
d4ce828e99
@ -169,18 +169,20 @@ export function isSystemLightMode() {
|
|||||||
|
|
||||||
export function downloadProgramFiles() {
|
export function downloadProgramFiles() {
|
||||||
manifest.programFiles.forEach(({ url, path }) => {
|
manifest.programFiles.forEach(({ url, path }) => {
|
||||||
ReadFileInfo(path).then(info => {
|
if (path)
|
||||||
if (info.size == 0 && url)
|
ReadFileInfo(path).then(info => {
|
||||||
AddToDownloadList(path, url.replace('@master', '@v' + manifest.version));
|
if (info.size == 0 && url)
|
||||||
}).catch(() => {
|
AddToDownloadList(path, url.replace('@master', '@v' + manifest.version));
|
||||||
AddToDownloadList(path, url.replace('@master', '@v' + manifest.version));
|
}).catch(() => {
|
||||||
});
|
if (url)
|
||||||
|
AddToDownloadList(path, url.replace('@master', '@v' + manifest.version));
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export function forceDownloadProgramFiles() {
|
export function forceDownloadProgramFiles() {
|
||||||
manifest.programFiles.forEach(({ url, path }) => {
|
manifest.programFiles.forEach(({ url, path }) => {
|
||||||
if (url)
|
if (path && url)
|
||||||
AddToDownloadList(path, url.replace('@master', '@v' + manifest.version));
|
AddToDownloadList(path, url.replace('@master', '@v' + manifest.version));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user