You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

app.js 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* Jitsi Meet app main entrypoint. */
  2. // Re-export jQuery
  3. // FIXME: Remove this requirement from torture tests.
  4. import $ from 'jquery';
  5. window.$ = window.jQuery = $;
  6. import '@matrix-org/olm';
  7. import 'focus-visible';
  8. // We need to setup the jitsi-local-storage as early as possible so that we can start using it.
  9. // NOTE: If jitsi-local-storage is used before the initial setup is performed this will break the use case when we use
  10. // the local storage from the parent page when the localStorage is disabled. Also the setup is relying that
  11. // window.location is not changed and still has all URL parameters.
  12. import './react/features/base/jitsi-local-storage/setup';
  13. import conference from './conference';
  14. import API from './modules/API';
  15. import UI from './modules/UI/UI';
  16. import translation from './modules/translation/translation';
  17. // Initialize Olm as early as possible.
  18. if (window.Olm) {
  19. window.Olm.init().catch(e => {
  20. console.error('Failed to initialize Olm, E2EE will be disabled', e);
  21. delete window.Olm;
  22. });
  23. }
  24. window.APP = {
  25. API,
  26. conference,
  27. translation,
  28. UI
  29. };
  30. // TODO The execution of the mobile app starts from react/index.native.js.
  31. // Similarly, the execution of the Web app should start from react/index.web.js
  32. // for the sake of consistency and ease of understanding. Temporarily though
  33. // because we are at the beginning of introducing React into the Web app, allow
  34. // the execution of the Web app to start from app.js in order to reduce the
  35. // complexity of the beginning step.
  36. import './react';