mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-06 11:37:02 +03:00
Added config option
This commit is contained in:
@@ -5,6 +5,7 @@ import Utils from "./utils";
|
|||||||
const utils = new Utils();
|
const utils = new Utils();
|
||||||
|
|
||||||
interface SBConfig {
|
interface SBConfig {
|
||||||
|
timeWithSkips: boolean,
|
||||||
userID: string,
|
userID: string,
|
||||||
sponsorTimes: SBMap<string, any>,
|
sponsorTimes: SBMap<string, any>,
|
||||||
whitelistedChannels: string[],
|
whitelistedChannels: string[],
|
||||||
@@ -123,6 +124,7 @@ var Config: SBObject = {
|
|||||||
*/
|
*/
|
||||||
configListeners: [],
|
configListeners: [],
|
||||||
defaults: {
|
defaults: {
|
||||||
|
timeWithSkips: false,
|
||||||
userID: null,
|
userID: null,
|
||||||
sponsorTimes: new SBMap("sponsorTimes"),
|
sponsorTimes: new SBMap("sponsorTimes"),
|
||||||
whitelistedChannels: [],
|
whitelistedChannels: [],
|
||||||
@@ -406,4 +408,4 @@ function addDefaults() {
|
|||||||
// Sync config
|
// Sync config
|
||||||
setupConfig();
|
setupConfig();
|
||||||
|
|
||||||
export default Config;
|
export default Config;
|
||||||
|
|||||||
Reference in New Issue
Block a user