function createNewErrorOverlay(data) {
  const HmrErrorOverlay = customElements.get('hmr-error-overlay');
  if (HmrErrorOverlay) {
    const overlay = new HmrErrorOverlay(data);
    clearErrorOverlay();
    document.body.appendChild(overlay);
  }
}
/** Create an error overlay (if custom element exists on the page). */
Create an error overlay (if custom element exists on the page).
Create an error overlay ( if custom element exists on the page ) .
function createNewErrorOverlay(data) {
  const HmrErrorOverlay = customElements.get('hmr-error-overlay');
  if (HmrErrorOverlay) {
    const overlay = new HmrErrorOverlay(data);
    clearErrorOverlay();
    document.body.appendChild(overlay);
  }
}
function createNewErrorOverlay ( data ) { const HmrErrorOverlay = customElements . get ( 'hmr-error-overlay' ) ; if ( HmrErrorOverlay ) { const overlay = new HmrErrorOverlay ( data ) ; clearErrorOverlay ( ) ; document . body . appendChild ( overlay ) ; } }
Create an error overlay (if custom element exists on the page).
Create an error overlay ( if custom element exists on the page ) .