@wordpress/blocks
Version:
Block API for WordPress.
8 lines (7 loc) • 637 B
Source Map (JSON)
{
"version": 3,
"sources": ["../../../src/api/raw-handling/iframe-remover.ts"],
"sourcesContent": ["/**\n * Removes iframes.\n *\n * @param iframe The node to check.\n */\nexport default function iframeRemover( iframe: Node ) {\n\tif ( iframe.nodeName === 'IFRAME' ) {\n\t\tconst node = iframe as HTMLIFrameElement;\n\t\tconst text = node.ownerDocument!.createTextNode( node.src );\n\t\tnode.parentNode!.replaceChild( text, node );\n\t}\n}\n"],
"mappings": ";AAKe,SAAR,cAAgC,QAAe;AACrD,MAAK,OAAO,aAAa,UAAW;AACnC,UAAM,OAAO;AACb,UAAM,OAAO,KAAK,cAAe,eAAgB,KAAK,GAAI;AAC1D,SAAK,WAAY,aAAc,MAAM,IAAK;AAAA,EAC3C;AACD;",
"names": []
}