123456789101112131415161718192021222324 |
- 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 DialInInfoPage from './DialInInfoPage';
-
- document.addEventListener('DOMContentLoaded', () => {
- const params = parseURLParams(window.location, true, 'search');
-
- ReactDOM.render(
- <I18nextProvider i18n = { i18next }>
- <DialInInfoPage
- room = { params.room } />
- </I18nextProvider>,
- document.getElementById('react')
- );
- });
-
- window.addEventListener('beforeunload', () => {
- ReactDOM.unmountComponentAtNode(document.getElementById('react'));
- });
|