@miyagi/core
Version:
miyagi is a component development tool for JavaScript template engines.
2 lines (1 loc) • 390 B
JavaScript
{const e=document.querySelector(".MiyagiComponentView-iframe");e?e.contentWindow.addEventListener("load",(()=>{e.contentWindow.axe.run(e.contentWindow.document.body,(function(e,n){window.dispatchEvent(new CustomEvent("axe:done",{detail:{err:e,results:n}}))}))})):axe.run(document.body.children,(function(e,n){window.dispatchEvent(new CustomEvent("axe:done",{detail:{err:e,results:n}}))}))}