fix(sdk): extract iframe src from embedded html on import
This commit is contained in:
parent
00cfb9111d
commit
b1ca80d5fe
@ -180,7 +180,10 @@ function pickSrc(option: GoViewIframeOption): string {
|
|||||||
},
|
},
|
||||||
3,
|
3,
|
||||||
);
|
);
|
||||||
if (html) return toDataHtmlUrl(html);
|
if (html) {
|
||||||
|
const extracted = extractSrcFromEmbedHtml(html);
|
||||||
|
return extracted || toDataHtmlUrl(html);
|
||||||
|
}
|
||||||
|
|
||||||
// 3) List-ish shapes.
|
// 3) List-ish shapes.
|
||||||
const listUrl = pickFromNested(
|
const listUrl = pickFromNested(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user