From e610c9a9ce31f01bf6baac43a52f437017c38147 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Sat, 22 Jul 2023 19:48:42 +0200 Subject: [PATCH] web: Readd warnOnUnsupportedContent for backwards compatibility, but mark it deprecated and unused --- web/packages/core/src/config.ts | 1 + web/packages/core/src/load-options.ts | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/web/packages/core/src/config.ts b/web/packages/core/src/config.ts index e011f0ca4..ea409677a 100644 --- a/web/packages/core/src/config.ts +++ b/web/packages/core/src/config.ts @@ -20,6 +20,7 @@ export const DEFAULT_CONFIG: Required = { upgradeToHttps: true, compatibilityRules: true, favorFlash: true, + warnOnUnsupportedContent: true, logLevel: LogLevel.Error, showSwfDownload: false, contextMenu: ContextMenu.On, diff --git a/web/packages/core/src/load-options.ts b/web/packages/core/src/load-options.ts index 359a871df..66ef1eb45 100644 --- a/web/packages/core/src/load-options.ts +++ b/web/packages/core/src/load-options.ts @@ -337,6 +337,19 @@ export interface BaseLoadOptions { */ favorFlash?: boolean; + /** + * This is no longer used and does not affect anything. + * It is only kept for backwards compatibility. + * + * Previously: + * "Whether or not to display an overlay with a warning when + * loading a movie with unsupported content." + * + * @default true + * @deprecated + */ + warnOnUnsupportedContent?: boolean; + /** * Console logging level. *