Integrating into LumApps

To replace LumApps search with Glean's modal search UI, insert the following custom code into the page's <head>, where YOURGLEANDOMAIN is where your company accesses Glean, such as app.glean.com, {company}.glean.com, etc.

Copy
Copied
<style>
  .searchbox__suggestions {
    display: none !important;
  }
</style>

<script defer src="https://{YOUR_GLEAN_DOMAIN}/embedded-search-latest.min.js"></script>

<script>
  window.addEventListener('load', async () => {
    const getSearchBox = () => document.querySelector(".header-top__search")
    while(!getSearchBox()) { await new Promise(r => setTimeout(r, 300)) }
    window.GleanWebSDK.attach(getSearchBox())
  })
</script>