diff --git a/content.js b/content.js index ec55863b..a1ad6950 100644 --- a/content.js +++ b/content.js @@ -525,23 +525,6 @@ function whitelistCheck() { UUIDs = []; channelWhitelisted = true; - - //make sure the whitelistedChannels array isn't broken and full of null entries - //TODO: remove this at some point in the future as the bug that caused this should be patched - if (whitelistedChannels.some((el) => el === null)) { - //remove the entries that are null - let cleanWhitelistedChannelsArray = []; - for (let i = 0; i < whitelistedChannels.length; i++) { - let channelURL = whitelistedChannels[i]; - if (channelURL !== null) { - //add it - cleanWhitelistedChannelsArray.push(channelURL); - } - } - - //save this value - chrome.storage.sync.set({"whitelistedChannels": cleanWhitelistedChannelsArray}); - } } }); }