fix(sdk): detect video widgets from embedded <video> html
This commit is contained in:
parent
7ede21108d
commit
3d9154baf7
@ -407,6 +407,10 @@ function looksLikeVideoOption(option: unknown): boolean {
|
||||
|
||||
// Prefer explicit video-ish keys when option is an object (including nested shapes).
|
||||
if (typeof option === 'object') {
|
||||
// Some exporters store a full <video> snippet under html-ish keys (html/code/template/etc).
|
||||
// Treat that as a strong signal for a video widget.
|
||||
if (containsVideoHtmlDeep(option, 2)) return true;
|
||||
|
||||
if (
|
||||
hasAnyKeyDeep(
|
||||
option,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user