mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 03:12:29 +00:00
12 lines
348 B
TypeScript
12 lines
348 B
TypeScript
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
|
|
import AlwaysOnTop from './AlwaysOnTop';
|
|
|
|
// Render the main/root Component.
|
|
ReactDOM.render(<AlwaysOnTop />, document.getElementById('react'));
|
|
|
|
window.addEventListener(
|
|
'beforeunload',
|
|
() => ReactDOM.unmountComponentAtNode(document.getElementById('react') ?? document.body));
|