2013-12-16 11:22:23 +00:00
|
|
|
/* application specific logic */
|
2014-05-12 09:56:33 +00:00
|
|
|
|
2022-08-30 11:21:24 +00:00
|
|
|
// Re-export jQuery
|
|
|
|
// FIXME: Remove this requirement from torture tests.
|
|
|
|
import $ from 'jquery';
|
|
|
|
|
|
|
|
window.$ = window.jQuery = $;
|
|
|
|
|
2021-05-24 17:13:30 +00:00
|
|
|
import '@matrix-org/olm';
|
2020-05-07 09:54:02 +00:00
|
|
|
|
2020-10-05 11:23:13 +00:00
|
|
|
import 'focus-visible';
|
|
|
|
|
2020-09-25 22:51:54 +00:00
|
|
|
// We need to setup the jitsi-local-storage as early as possible so that we can start using it.
|
2020-09-29 15:44:17 +00:00
|
|
|
// NOTE: If jitsi-local-storage is used before the initial setup is performed this will break the use case when we use
|
2020-09-25 22:51:54 +00:00
|
|
|
// 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';
|
2017-06-16 03:47:04 +00:00
|
|
|
import conference from './conference';
|
|
|
|
import API from './modules/API';
|
2020-05-20 10:57:03 +00:00
|
|
|
import UI from './modules/UI/UI';
|
2017-06-16 03:47:04 +00:00
|
|
|
import keyboardshortcut from './modules/keyboardshortcut/keyboardshortcut';
|
|
|
|
import translation from './modules/translation/translation';
|
|
|
|
|
2020-05-07 09:54:02 +00:00
|
|
|
// Initialize Olm as early as possible.
|
|
|
|
if (window.Olm) {
|
2020-10-01 11:37:16 +00:00
|
|
|
window.Olm.init().catch(e => {
|
|
|
|
console.error('Failed to initialize Olm, E2EE will be disabled', e);
|
|
|
|
delete window.Olm;
|
|
|
|
});
|
2020-05-07 09:54:02 +00:00
|
|
|
}
|
|
|
|
|
2017-06-16 03:47:04 +00:00
|
|
|
window.APP = {
|
|
|
|
API,
|
|
|
|
conference,
|
|
|
|
|
|
|
|
// Used for automated performance tests.
|
|
|
|
connectionTimes: {
|
|
|
|
'index.loaded': window.indexLoadedTime
|
|
|
|
},
|
2017-05-26 22:11:33 +00:00
|
|
|
|
2017-06-16 03:47:04 +00:00
|
|
|
keyboardshortcut,
|
|
|
|
translation,
|
|
|
|
UI
|
2017-06-14 18:13:41 +00:00
|
|
|
};
|
2017-05-26 22:11:33 +00:00
|
|
|
|
2016-12-14 10:32:36 +00:00
|
|
|
// TODO The execution of the mobile app starts from react/index.native.js.
|
2017-01-10 19:06:18 +00:00
|
|
|
// 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.
|
2017-05-26 22:11:33 +00:00
|
|
|
import './react';
|