mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-07 20:17:05 +03:00
Fixed null whitelisted channel check happening after use
This commit is contained in:
@@ -254,7 +254,7 @@ async function migrateOldFormats() {
|
|||||||
|
|
||||||
// Channel URLS
|
// Channel URLS
|
||||||
if (Config.config.whitelistedChannels.length > 0 &&
|
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[] = [];
|
let newChannelList: string[] = [];
|
||||||
for (const item of Config.config.whitelistedChannels) {
|
for (const item of Config.config.whitelistedChannels) {
|
||||||
if (item != null) {
|
if (item != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user