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.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* application specific logic */
  2. import 'jquery';
  3. import 'olm';
  4. import 'focus-visible';
  5. // We need to setup the jitsi-local-storage as early as possible so that we can start using it.
  6. // NOTE: If jitsi-local-storage is used before the initial setup is performed this will break the use case when we use
  7. // the local storage from the parent page when the localStorage is disabled. Also the setup is relying that
  8. // window.location is not changed and still has all URL parameters.
  9. import './react/features/base/jitsi-local-storage/setup';
  10. import conference from './conference';
  11. import API from './modules/API';
  12. import UI from './modules/UI/UI';
  13. import keyboardshortcut from './modules/keyboardshortcut/keyboardshortcut';
  14. import translation from './modules/translation/translation';
  15. // Initialize Olm as early as possible.
  16. if (window.Olm) {
  17. window.Olm.init().catch(e => {
  18. console.error('Failed to initialize Olm, E2EE will be disabled', e);
  19. delete window.Olm;
  20. });
  21. }
  22. window.APP = {
  23. API,
  24. conference,
  25. // Used by do_external_connect.js if we receive the attach data after
  26. // connect was already executed. status property can be 'initialized',
  27. // 'ready', or 'connecting'. We are interested in 'ready' status only which
  28. // means that connect was executed but we have to wait for the attach data.
  29. // In status 'ready' handler property will be set to a function that will
  30. // finish the connect process when the attach data or error is received.
  31. connect: {
  32. handler: null,
  33. status: 'initialized'
  34. },
  35. // Used for automated performance tests.
  36. connectionTimes: {
  37. 'index.loaded': window.indexLoadedTime
  38. },
  39. keyboardshortcut,
  40. translation,
  41. UI
  42. };
  43. // TODO The execution of the mobile app starts from react/index.native.js.
  44. // Similarly, the execution of the Web app should start from react/index.web.js
  45. // for the sake of consistency and ease of understanding. Temporarily though
  46. // because we are at the beginning of introducing React into the Web app, allow
  47. // the execution of the Web app to start from app.js in order to reduce the
  48. // complexity of the beginning step.
  49. import './react';