aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2020-05-11 18:35:07 -0400
committerAjay Ramachandran <[email protected]>2020-05-11 18:35:07 -0400
commit3fb5c1c14fc7e1338984fb02587a6e91f80c602a (patch)
treed079efae062d1920eecd0d7bdc0c461bbc04519a
parentb1d9cde715727de5aa037f022785106edb6c1473 (diff)
downloadSponsorBlock-3fb5c1c14fc7e1338984fb02587a6e91f80c602a.tar.gz
SponsorBlock-3fb5c1c14fc7e1338984fb02587a6e91f80c602a.zip
Only splice 1 when removing offtopic category selection
-rw-r--r--src/config.ts2
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;