mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
Added code to remove off-topic from category selections.
That category has been removed.
This commit is contained in:
parent
aa8225c196
commit
b1d9cde715
1 changed files with 10 additions and 0 deletions
|
@ -281,6 +281,16 @@ async function migrateOldFormats() {
|
|||
|
||||
Config.config.whitelistedChannels = newChannelList;
|
||||
}
|
||||
|
||||
// Check if off-topic category needs to be removed
|
||||
for (let i = 0; i < Config.config.categorySelections.length; i++) {
|
||||
if (Config.config.categorySelections[i].name === "offtopic") {
|
||||
Config.config.categorySelections.splice(i);
|
||||
// Call set listener
|
||||
Config.config.categorySelections = Config.config.categorySelections;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function setupConfig() {
|
||||
|
|
Loading…
Reference in a new issue