Fixed null whitelisted channel check happening after use

This commit is contained in:
Ajay Ramachandran
2020-05-10 21:28:01 -04:00
parent 3816313f1e
commit 98fd841a54

View File

@@ -254,7 +254,7 @@ async function migrateOldFormats() {
// Channel URLS
if (Config.config.whitelistedChannels.length > 0 &&
(Config.config.whitelistedChannels[0].includes("/") || Config.config.whitelistedChannels[0] == null)) {
(Config.config.whitelistedChannels[0] == null || Config.config.whitelistedChannels[0].includes("/"))) {
let newChannelList: string[] = [];
for (const item of Config.config.whitelistedChannels) {
if (item != null) {