UNPKG

graphdb-workbench

Version:
1 lines 483 B
let navbarElement=document.querySelector("onto-navbar");window.singleSpa={navigateToUrl:function(e){console.log("%cnavigate","background: blue",e)}};const selectNavbar=()=>document.querySelector("onto-navbar");function waitForNavbar(){return new Promise(e=>{const n=selectNavbar();if(n)e(n);else{const n=new MutationObserver(()=>{const t=selectNavbar();t&&(e(t),n.disconnect())});n.observe(document.body,{childList:!0,subtree:!0})}})}waitForNavbar().then(e=>{e.menuItems=menuItems});