aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2021-08-17 21:03:36 -0400
committerAjay Ramachandran <[email protected]>2021-08-17 21:03:36 -0400
commit4fef6dcfa08bd365a8f8fd03a5b3514c8a1bf9e3 (patch)
treec0d39fd01d42a3b167936693ec446b6eba2b0ba8
parenta3c80573fab666bf1d3c5df298e71ab68443bdfe (diff)
downloadSponsorBlock-4fef6dcfa08bd365a8f8fd03a5b3514c8a1bf9e3.tar.gz
SponsorBlock-4fef6dcfa08bd365a8f8fd03a5b3514c8a1bf9e3.zip
Remove preview category auto enable
-rw-r--r--src/config.ts19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/config.ts b/src/config.ts
index 7baf2999..5e25f774 100644
--- a/src/config.ts
+++ b/src/config.ts
@@ -379,25 +379,6 @@ function migrateOldFormats(config: SBConfig) {
}
}
- // Adding preview category
- if (!config["previewCategoryUpdate"]) {
- config["previewCategoryUpdate"] = true;
- for (const selection of config.categorySelections) {
- if (selection.name === "intro"
- && selection.option === CategorySkipOption.AutoSkip || selection.option === CategorySkipOption.ManualSkip) {
-
- // Add a default skip option for preview category
- config.categorySelections.push({
- name: "preview" as Category,
- option: CategorySkipOption.ManualSkip
- });
- // Ensure it gets updated
- config.categorySelections = config.categorySelections;
- break;
- }
- }
- }
-
if (config["disableAutoSkip"]) {
for (const selection of config.categorySelections) {
if (selection.name === "sponsor") {