Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
},
() => {
const errorEvent = new CustomEvent('error');
if (isFunction(element.onerror)) {
element.onerror(errorEvent);
} else {
element.dispatchEvent(errorEvent);
}
},
);
const dynamicScriptCommentElement = document.createComment(`dynamic script ${src} replaced by qiankun`);
return rawHtmlAppendChild.call(this, dynamicScriptCommentElement) as T;
}
execScripts(null, [``], proxy).then(element.onload, element.onerror);
const dynamicInlineScriptCommentElement = document.createComment('dynamic inline script replaced by qiankun');
return rawHtmlAppendChild.call(this, dynamicInlineScriptCommentElement) as T;
}
default:
break;
}
}
return rawHtmlAppendChild.call(this, element) as T;
};