import React from 'react'; import ReactDOM from 'react-dom'; import { I18nextProvider } from 'react-i18next'; import parseURLParams from '../../../base/config/parseURLParams'; import { i18next } from '../../../base/i18n'; import { DialInSummary } from '../dial-in-summary'; import NoRoomError from './NoRoomError'; document.addEventListener('DOMContentLoaded', () => { const params = parseURLParams(window.location, true, 'search'); const { room } = params; ReactDOM.render( { room ? : } , document.getElementById('react') ); }); window.addEventListener('beforeunload', () => { ReactDOM.unmountComponentAtNode(document.getElementById('react')); });