From 2fa412e5744e5cee578527cabed334210b5b593b Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sat, 23 Nov 2019 17:44:22 -0500 Subject: [PATCH] Removed deprecated code to fix whitelist array. --- content.js | 17 ----------------- 1 file changed, 17 deletions(-) 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}); - } } }); }