Remove category update message

This commit is contained in:
Ajay Ramachandran
2020-07-02 21:13:07 -04:00
parent cd0b1f4a31
commit 955ee32b46
2 changed files with 4 additions and 12 deletions

View File

@@ -134,13 +134,6 @@ class SkipNoticeComponent extends React.Component<SkipNoticeProps, SkipNoticeSta
this.audio.volume = this.contentContainer().v.volume * 0.1;
this.audio.play();
}
if (Config.config.categoryUpdateShowCount < 3 && Config.config.categorySelections.length <= 1) {
this.setNoticeInfoMessageWithOnClick(() => chrome.runtime.sendMessage({"message": "openConfig"})
, chrome.i18n.getMessage("categoryUpdate1"), chrome.i18n.getMessage("categoryUpdate2"));
Config.config.categoryUpdateShowCount = Config.config.categoryUpdateShowCount + 1
}
}
render() {

View File

@@ -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 &&