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 =
|
||||
isImage(c) || looksLikeImageOption(option)
|
||||
? 'image'
|
||||
: optionSaysVideo
|
||||
? 'video'
|
||||
: optionSaysIframe
|
||||
? 'iframe'
|
||||
: isVideo(c)
|
||||
? 'video'
|
||||
: isIframe(c)
|
||||
? 'iframe'
|
||||
: optionSaysIframe
|
||||
? 'iframe'
|
||||
: optionSaysVideo
|
||||
? 'video'
|
||||
: isIframe(c)
|
||||
? 'iframe'
|
||||
: isVideo(c)
|
||||
? 'video'
|
||||
: isTextCommon(c)
|
||||
? 'text'
|
||||
: undefined;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user