production-taskbar-client / src / main / utils / configureRootDocument.js
configureRootDocument.js
Raw
export default function configureRootDocument() {
  const root = document.createElement("div");
  root.id = "root";
  document.body.appendChild(root);
  document.body.style.userSelect = "none";
  if (process.env.NODE_ENV !== "development")
    document.body.style.overflow = "hidden";
}