From 34f4b14672eb1596bc232eb8ddaa18e667673beb Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Wed, 9 Jun 2021 19:22:02 -0400 Subject: [PATCH] Remove unused config values --- src/config.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/config.ts b/src/config.ts index b555f3ae..a80d667d 100644 --- a/src/config.ts +++ b/src/config.ts @@ -428,6 +428,14 @@ function migrateOldFormats(config: SBConfig) { chrome.storage.sync.remove("sponsorTimes"); } + + // Remove some old unused options + if (config["sponsorVideoID"] !== undefined) { + chrome.storage.sync.remove("sponsorVideoID"); + } + if (config["previousVideoID"] !== undefined) { + chrome.storage.sync.remove("previousVideoID"); + } } async function setupConfig() {