libs/code-demos/src/lib/shared/sandbox.ts
Function injectIframe
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function injectIframe(
element: any,
config: SandboxConfig
): Promise<SandBox> {
if (iframes.has(element)) {
Function onload
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
iframe.contentWindow.onload = () => {
function setHtml(html) {
iframe.contentDocument.body.innerHTML = html;
}