From 6d442b9e804ff49f2966bc6f27fa9243a08a0a25 Mon Sep 17 00:00:00 2001 From: afrmtbl Date: Thu, 5 Dec 2019 15:48:26 -0500 Subject: [PATCH] Explain additional whitelist check --- content.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content.js b/content.js index 5340fd04..cf0ef27c 100644 --- a/content.js +++ b/content.js @@ -475,6 +475,10 @@ function sponsorsLookup(id, channelIDPromise) { 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) { whitelistCheck(); }