1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- /* application specific logic */
-
- import 'jquery';
-
- import 'olm';
-
- import 'focus-visible';
-
- if (!window.clog){
- window.clog = console.log
- }
- console.log("glob_dbg app 0",window.glob_dbg,window?.glob_dbg?.defined)
- window.glob_dbg = window.glob_dbg || {defined:"app"}
- window.glob_dbg.def2="app"
- console.log("glob_dbg app 1",window.glob_dbg,window?.glob_dbg?.defined)
- window.glob_dbg.j={}
- console.log("APP?.")
- // console.log("APP?")
-
- import * as hi_t0 from './rdev/hooks/hookImports_t0';
- import * as jc1 from './rdev/hooks/hookImports1';
- import * as hi_t1 from './rdev/hooks/hookImports_t1';
- import * as hooks1 from './rdev/hooks/Hooks';
-
- // We need to setup the jitsi-local-storage as early as possible so that we can start using it.
- // NOTE: If jitsi-local-storage is used before the initial setup is performed this will break the use case when we use
- // the local storage from the parent page when the localStorage is disabled. Also the setup is relying that
- // window.location is not changed and still has all URL parameters.
- import './react/features/base/jitsi-local-storage/setup';
- import conference from './conference';
- import API from './modules/API';
- import UI from './modules/UI/UI';
- import keyboardshortcut from './modules/keyboardshortcut/keyboardshortcut';
- import translation from './modules/translation/translation';
-
- // Initialize Olm as early as possible.
- if (window.Olm) {
- window.Olm.init().catch(e => {
- console.error('Failed to initialize Olm, E2EE will be disabled', e);
- delete window.Olm;
- });
- }
-
- window.APP = {
- API,
- conference,
-
- // Used by do_external_connect.js if we receive the attach data after
- // connect was already executed. status property can be 'initialized',
- // 'ready', or 'connecting'. We are interested in 'ready' status only which
- // means that connect was executed but we have to wait for the attach data.
- // In status 'ready' handler property will be set to a function that will
- // finish the connect process when the attach data or error is received.
- connect: {
- handler: null,
- status: 'initialized'
- },
-
- // Used for automated performance tests.
- connectionTimes: {
- 'index.loaded': window.indexLoadedTime
- },
-
- keyboardshortcut,
- translation,
- UI
- };
-
- import * as jc2 from './rdev/hooks/hookImports2';
-
- // TODO The execution of the mobile app starts from react/index.native.js.
- // Similarly, the execution of the Web app should start from react/index.web.js
- // for the sake of consistency and ease of understanding. Temporarily though
- // because we are at the beginning of introducing React into the Web app, allow
- // the execution of the Web app to start from app.js in order to reduce the
- // complexity of the beginning step.
- import './react';
-
-
- import * as jc3 from './rdev/hooks/hookImports3';
|