您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

index.web.js 928B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* global APP */
  2. import React from 'react';
  3. import ReactDOM from 'react-dom';
  4. import config from './config';
  5. import { App } from './features/app';
  6. const logger = require('jitsi-meet-logger').getLogger(__filename);
  7. /**
  8. * Renders the app when the DOM tree has been loaded.
  9. */
  10. document.addEventListener('DOMContentLoaded', () => {
  11. const now = window.performance.now();
  12. APP.connectionTimes['document.ready'] = now;
  13. logger.log('(TIME) document ready:\t', now);
  14. // Render the main Component.
  15. ReactDOM.render(
  16. <App config = { config } />,
  17. document.getElementById('react'));
  18. });
  19. /**
  20. * Stops collecting the logs and disposing the API when the user closes the
  21. * page.
  22. */
  23. window.addEventListener('beforeunload', () => {
  24. // Stop the LogCollector
  25. if (APP.logCollectorStarted) {
  26. APP.logCollector.stop();
  27. APP.logCollectorStarted = false;
  28. }
  29. APP.API.dispose();
  30. });