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 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* application specific logic */
  2. import 'jquery';
  3. import 'olm';
  4. import 'focus-visible';
  5. console.log("APP?")
  6. import * as jc1 from './rdev/hooks/hookImports1';
  7. import * as hooks1 from './rdev/hooks/Hooks';
  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 by do_external_connect.js if we receive the attach data after
  29. // connect was already executed. status property can be 'initialized',
  30. // 'ready', or 'connecting'. We are interested in 'ready' status only which
  31. // means that connect was executed but we have to wait for the attach data.
  32. // In status 'ready' handler property will be set to a function that will
  33. // finish the connect process when the attach data or error is received.
  34. connect: {
  35. handler: null,
  36. status: 'initialized'
  37. },
  38. // Used for automated performance tests.
  39. connectionTimes: {
  40. 'index.loaded': window.indexLoadedTime
  41. },
  42. keyboardshortcut,
  43. translation,
  44. UI
  45. };
  46. import * as jc2 from './rdev/hooks/hookImports2';
  47. // TODO The execution of the mobile app starts from react/index.native.js.
  48. // Similarly, the execution of the Web app should start from react/index.web.js
  49. // for the sake of consistency and ease of understanding. Temporarily though
  50. // because we are at the beginning of introducing React into the Web app, allow
  51. // the execution of the Web app to start from app.js in order to reduce the
  52. // complexity of the beginning step.
  53. import './react';