Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* application specific logic */
  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 keyboardshortcut from './modules/keyboardshortcut/keyboardshortcut';
  17. import translation from './modules/translation/translation';
  18. // Initialize Olm as early as possible.
  19. if (window.Olm) {
  20. window.Olm.init().catch(e => {
  21. console.error('Failed to initialize Olm, E2EE will be disabled', e);
  22. delete window.Olm;
  23. });
  24. }
  25. window.APP = {
  26. API,
  27. conference,
  28. // Used for automated performance tests.
  29. connectionTimes: {
  30. 'index.loaded': window.indexLoadedTime
  31. },
  32. keyboardshortcut,
  33. translation,
  34. UI
  35. };
  36. // TODO The execution of the mobile app starts from react/index.native.js.
  37. // Similarly, the execution of the Web app should start from react/index.web.js
  38. // for the sake of consistency and ease of understanding. Temporarily though
  39. // because we are at the beginning of introducing React into the Web app, allow
  40. // the execution of the Web app to start from app.js in order to reduce the
  41. // complexity of the beginning step.
  42. import './react';