From 955ee32b462a185ceb181c9b4c048d49ddb09246 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Thu, 2 Jul 2020 21:13:07 -0400 Subject: [PATCH] Remove category update message --- src/components/SkipNoticeComponent.tsx | 7 ------- src/config.ts | 9 ++++----- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/components/SkipNoticeComponent.tsx b/src/components/SkipNoticeComponent.tsx index 022490d0..9dab754b 100644 --- a/src/components/SkipNoticeComponent.tsx +++ b/src/components/SkipNoticeComponent.tsx @@ -134,13 +134,6 @@ class SkipNoticeComponent extends React.Component chrome.runtime.sendMessage({"message": "openConfig"}) - , chrome.i18n.getMessage("categoryUpdate1"), chrome.i18n.getMessage("categoryUpdate2")); - - Config.config.categoryUpdateShowCount = Config.config.categoryUpdateShowCount + 1 - } } render() { diff --git a/src/config.ts b/src/config.ts index 634947a9..4198b7d6 100644 --- a/src/config.ts +++ b/src/config.ts @@ -33,8 +33,6 @@ interface SBConfig { checkForUnlistedVideos: boolean, testingServer: boolean, - categoryUpdateShowCount: number, - // What categories should be skipped categorySelections: CategorySelection[], @@ -151,8 +149,6 @@ var Config: SBObject = { checkForUnlistedVideos: false, testingServer: false, - categoryUpdateShowCount: 0, - categorySelections: [{ name: "sponsor", option: CategorySkipOption.AutoSkip @@ -328,11 +324,14 @@ async function migrateOldFormats() { if (Config.config["autoUpvote"]) { chrome.storage.sync.remove("autoUpvote"); } - // mobileUpdateShowCount removal if (Config.config["mobileUpdateShowCount"] !== undefined) { chrome.storage.sync.remove("mobileUpdateShowCount"); } + // categoryUpdateShowCount removal + if (Config.config["categoryUpdateShowCount"] !== undefined) { + chrome.storage.sync.remove("categoryUpdateShowCount"); + } // Channel URLS if (Config.config.whitelistedChannels.length > 0 &&