mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 05:57:07 +03:00
Explain additional whitelist check
This commit is contained in:
@@ -475,6 +475,10 @@ function sponsorsLookup(id, channelIDPromise) {
|
|||||||
sponsorLookupRetries++;
|
sponsorLookupRetries++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If the initial channel whitelist check finishes before
|
||||||
|
// the fetching of the sponsor times, then the sponsor times will be
|
||||||
|
// added again after the whitelist check clears them. Checking it here makes sure
|
||||||
|
// the whitelist will be applied (downside is `whitelistCheck()` gets called multiple times).
|
||||||
if (channelWhitelisted) {
|
if (channelWhitelisted) {
|
||||||
whitelistCheck();
|
whitelistCheck();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user