UNPKG

@wordpress/blocks

Version:
8 lines (7 loc) 681 B
{ "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": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;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": [] }