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.4KB

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