diff options
author | Ajay Ramachandran <[email protected]> | 2020-05-11 18:35:07 -0400 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2020-05-11 18:35:07 -0400 |
commit | 3fb5c1c14fc7e1338984fb02587a6e91f80c602a (patch) | |
tree | d079efae062d1920eecd0d7bdc0c461bbc04519a /src/config.ts | |
parent | b1d9cde715727de5aa037f022785106edb6c1473 (diff) | |
download | SponsorBlock-3fb5c1c14fc7e1338984fb02587a6e91f80c602a.tar.gz SponsorBlock-3fb5c1c14fc7e1338984fb02587a6e91f80c602a.zip |
Only splice 1 when removing offtopic category selection
Diffstat (limited to 'src/config.ts')
-rw-r--r-- | src/config.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.ts b/src/config.ts index 5b7b9929..7b8fe15b 100644 --- a/src/config.ts +++ b/src/config.ts @@ -285,7 +285,7 @@ async function migrateOldFormats() { // 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); + Config.config.categorySelections.splice(i, 1); // Call set listener Config.config.categorySelections = Config.config.categorySelections; break; |