Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

295 B
Raw Blame
export const setupModalRoot = () => {
  let portalRoot = document.getElementById("root-modal")
  if (portalRoot) {
    document.body.removeChild(portalRoot)
  }

  portalRoot = document.createElement("div")
  portalRoot.setAttribute("id", "root-modal")
  document.body.appendChild(portalRoot)
}