web: Readd warnOnUnsupportedContent for backwards compatibility, but mark it deprecated and unused

This commit is contained in:
Nathan Adams 2023-07-22 19:48:42 +02:00
parent 586c3bebf6
commit e610c9a9ce
2 changed files with 14 additions and 0 deletions

View File

@ -20,6 +20,7 @@ export const DEFAULT_CONFIG: Required<BaseLoadOptions> = {
upgradeToHttps: true,
compatibilityRules: true,
favorFlash: true,
warnOnUnsupportedContent: true,
logLevel: LogLevel.Error,
showSwfDownload: false,
contextMenu: ContextMenu.On,

View File

@ -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.
*