fix(sdk): extract iframe src from embedded html on import

This commit is contained in:
clawdbot 2026-01-28 19:12:21 +08:00
parent 00cfb9111d
commit b1ca80d5fe

View File

@ -180,7 +180,10 @@ function pickSrc(option: GoViewIframeOption): string {
},
3,
);
if (html) return toDataHtmlUrl(html);
if (html) {
const extracted = extractSrcFromEmbedHtml(html);
return extracted || toDataHtmlUrl(html);
}
// 3) List-ish shapes.
const listUrl = pickFromNested(