sdk: prefer iframe over video when inferring goView widgets
This commit is contained in:
parent
b30d0ff069
commit
4e479870a9
@ -430,14 +430,14 @@ export function convertGoViewProjectToScreen(input: GoViewProjectLike | GoViewSt
|
|||||||
const inferredType: 'text' | 'image' | 'iframe' | 'video' | undefined =
|
const inferredType: 'text' | 'image' | 'iframe' | 'video' | undefined =
|
||||||
isImage(c) || looksLikeImageOption(option)
|
isImage(c) || looksLikeImageOption(option)
|
||||||
? 'image'
|
? 'image'
|
||||||
: optionSaysVideo
|
|
||||||
? 'video'
|
|
||||||
: optionSaysIframe
|
: optionSaysIframe
|
||||||
? 'iframe'
|
? 'iframe'
|
||||||
: isVideo(c)
|
: optionSaysVideo
|
||||||
? 'video'
|
? 'video'
|
||||||
: isIframe(c)
|
: isIframe(c)
|
||||||
? 'iframe'
|
? 'iframe'
|
||||||
|
: isVideo(c)
|
||||||
|
? 'video'
|
||||||
: isTextCommon(c)
|
: isTextCommon(c)
|
||||||
? 'text'
|
? 'text'
|
||||||
: undefined;
|
: undefined;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user