Default to blank category when submitting

This commit is contained in:
Ajay Ramachandran
2020-07-12 20:59:35 -04:00
parent 2d74ce2093
commit 3dc6563048
6 changed files with 29 additions and 5 deletions

View File

@@ -8,6 +8,7 @@ interface SBConfig {
userID: string,
// sponsorTimes: SBMap<string, SponsorTime[]>,
segmentTimes: SBMap<string, SponsorTime[]>,
defaultCategory: string,
whitelistedChannels: string[],
forceChannelCheck: boolean,
startSponsorKeybind: string,
@@ -40,6 +41,7 @@ interface SBConfig {
// Preview bar
barTypes: {
"preview-chooseACategory": PreviewBarOption,
"sponsor": PreviewBarOption,
"preview-sponsor": PreviewBarOption,
"intro": PreviewBarOption,
@@ -137,6 +139,7 @@ var Config: SBObject = {
defaults: {
userID: null,
segmentTimes: new SBMap("segmentTimes"),
defaultCategory: "chooseACategory",
whitelistedChannels: [],
forceChannelCheck: false,
startSponsorKeybind: ";",
@@ -171,6 +174,10 @@ var Config: SBObject = {
// Preview bar
barTypes: {
"preview-chooseACategory": {
color: "#ffffff",
opacity: "0.7"
},
"sponsor": {
color: "#00d400",
opacity: "0.7"