mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Fix bugs in dropdown loading
This commit is contained in:
parent
a4fdb96768
commit
cff8664e24
@ -1950,11 +1950,15 @@ class ResourceManager
|
||||
}));
|
||||
}
|
||||
}
|
||||
await Promise.all(Object.values(Resource.manifest)
|
||||
.concat(Object.values(Resource.all))
|
||||
.filter(it => it.dropdown)
|
||||
.map(it => applyDropdownOption(it.dropdown))
|
||||
);
|
||||
const manifests = Object.values(Resource.manifest).filter(it => it.dropdown).map(it => it.dropdown);
|
||||
Object.values(Resource.all).filter(it => it.dropdown).map(it => it.dropdown).forEach(it =>
|
||||
{
|
||||
if (!manifests.some(m => m.key === it.key))
|
||||
{
|
||||
manifests.push(it);
|
||||
}
|
||||
});
|
||||
await Promise.all(manifests.map(it => applyDropdownOption(it)));
|
||||
}
|
||||
validateCache()
|
||||
{
|
||||
|
||||
@ -1950,11 +1950,15 @@ class ResourceManager
|
||||
}));
|
||||
}
|
||||
}
|
||||
await Promise.all(Object.values(Resource.manifest)
|
||||
.concat(Object.values(Resource.all))
|
||||
.filter(it => it.dropdown)
|
||||
.map(it => applyDropdownOption(it.dropdown))
|
||||
);
|
||||
const manifests = Object.values(Resource.manifest).filter(it => it.dropdown).map(it => it.dropdown);
|
||||
Object.values(Resource.all).filter(it => it.dropdown).map(it => it.dropdown).forEach(it =>
|
||||
{
|
||||
if (!manifests.some(m => m.key === it.key))
|
||||
{
|
||||
manifests.push(it);
|
||||
}
|
||||
});
|
||||
await Promise.all(manifests.map(it => applyDropdownOption(it)));
|
||||
}
|
||||
validateCache()
|
||||
{
|
||||
|
||||
@ -1895,11 +1895,15 @@ class ResourceManager
|
||||
}));
|
||||
}
|
||||
}
|
||||
await Promise.all(Object.values(Resource.manifest)
|
||||
.concat(Object.values(Resource.all))
|
||||
.filter(it => it.dropdown)
|
||||
.map(it => applyDropdownOption(it.dropdown))
|
||||
);
|
||||
const manifests = Object.values(Resource.manifest).filter(it => it.dropdown).map(it => it.dropdown);
|
||||
Object.values(Resource.all).filter(it => it.dropdown).map(it => it.dropdown).forEach(it =>
|
||||
{
|
||||
if (!manifests.some(m => m.key === it.key))
|
||||
{
|
||||
manifests.push(it);
|
||||
}
|
||||
});
|
||||
await Promise.all(manifests.map(it => applyDropdownOption(it)));
|
||||
}
|
||||
validateCache()
|
||||
{
|
||||
|
||||
@ -1895,11 +1895,15 @@ class ResourceManager
|
||||
}));
|
||||
}
|
||||
}
|
||||
await Promise.all(Object.values(Resource.manifest)
|
||||
.concat(Object.values(Resource.all))
|
||||
.filter(it => it.dropdown)
|
||||
.map(it => applyDropdownOption(it.dropdown))
|
||||
);
|
||||
const manifests = Object.values(Resource.manifest).filter(it => it.dropdown).map(it => it.dropdown);
|
||||
Object.values(Resource.all).filter(it => it.dropdown).map(it => it.dropdown).forEach(it =>
|
||||
{
|
||||
if (!manifests.some(m => m.key === it.key))
|
||||
{
|
||||
manifests.push(it);
|
||||
}
|
||||
});
|
||||
await Promise.all(manifests.map(it => applyDropdownOption(it)));
|
||||
}
|
||||
validateCache()
|
||||
{
|
||||
|
||||
@ -249,11 +249,15 @@ export class ResourceManager
|
||||
}));
|
||||
}
|
||||
}
|
||||
await Promise.all(Object.values(Resource.manifest)
|
||||
.concat(Object.values(Resource.all))
|
||||
.filter(it => it.dropdown)
|
||||
.map(it => applyDropdownOption(it.dropdown))
|
||||
);
|
||||
const manifests = Object.values(Resource.manifest).filter(it => it.dropdown).map(it => it.dropdown);
|
||||
Object.values(Resource.all).filter(it => it.dropdown).map(it => it.dropdown).forEach(it =>
|
||||
{
|
||||
if (!manifests.some(m => m.key === it.key))
|
||||
{
|
||||
manifests.push(it);
|
||||
}
|
||||
});
|
||||
await Promise.all(manifests.map(it => applyDropdownOption(it)));
|
||||
}
|
||||
validateCache()
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user