diff --git a/src/services/config.service.ts b/src/services/config.service.ts index 1e64479be..d584fe288 100644 --- a/src/services/config.service.ts +++ b/src/services/config.service.ts @@ -16,8 +16,8 @@ const menuSchema: SchemaOf = object().shape({ }); const optionsSchema: SchemaOf = object({ - backgroundColor: string().notRequired(), - highlightColor: string().notRequired(), + backgroundColor: string().nullable(), + highlightColor: string().nullable(), enableContinueWatching: boolean().notRequired(), headerBackground: string().notRequired(), enableCasting: boolean().notRequired(), @@ -86,6 +86,7 @@ const serializeDeprecatedConfig = (config: Config) => { analyticsToken: description.analyticsToken, options: { dynamicBlur: description.dynamicBlur, + ...config.options, }, }; console.info(newConfig); diff --git a/types/Config.d.ts b/types/Config.d.ts index 4accf1133..57fe3922c 100644 --- a/types/Config.d.ts +++ b/types/Config.d.ts @@ -35,8 +35,8 @@ export type Menu = { }; export type Options = { - backgroundColor?: string; - highlightColor?: string; + backgroundColor?: string | null; + highlightColor?: string | null; enableContinueWatching?: boolean; headerBackground?: string; enableCasting?: boolean;