packages/netlify-cms-core/src/bootstrap.js
function getRoot() {
    /**
     * Return existing root if found.
     */
    const existingRoot = document.getElementById(ROOT_ID);
    if (existingRoot) {
      return existingRoot;
    }

    /**
     * If no existing root, create and return a new root.
     */
    const newRoot = document.createElement('div');
    newRoot.id = ROOT_ID;
    document.body.appendChild(newRoot);
    return newRoot;
  }
function getRoot() {
    /**
     * Return existing root if found.
     */
    const existingRoot = document.getElementById(ROOT_ID);
    if (existingRoot) {
      return existingRoot;
    }

    /**
     * If no existing root, create and return a new root.
     */
    const newRoot = document.createElement('div');
    newRoot.id = ROOT_ID;
    document.body.appendChild(newRoot);
    return newRoot;
  }
function getRoot ( ) { /**
     * Return existing root if found.
     */ const existingRoot = document . getElementById ( ROOT_ID ) ; if ( existingRoot ) { return existingRoot ; } /**
     * If no existing root, create and return a new root.
     */ const newRoot = document . createElement ( 'div' ) ; newRoot . id = ROOT_ID ; document . body . appendChild ( newRoot ) ; return newRoot ; }
Get DOM element where app will mount.
Get DOM element where app will mount .