|
@@ -192,9 +192,18 @@ function init() {
|
192
|
192
|
APP.ConferenceUrl = new ConferenceUrl(window.location);
|
193
|
193
|
// Clean up the URL displayed by the browser
|
194
|
194
|
replaceHistoryState(APP.ConferenceUrl.getInviteUrl());
|
|
195
|
+
|
|
196
|
+ // TODO The execution of the mobile app starts from react/index.native.js.
|
|
197
|
+ // Similarly, the execution of the Web app should start from
|
|
198
|
+ // react/index.web.js for the sake of consistency and ease of understanding.
|
|
199
|
+ // Temporarily though because we are at the beginning of introducing React
|
|
200
|
+ // into the Web app, allow the execution of the Web app to start from app.js
|
|
201
|
+ // in order to reduce the complexity of the beginning step.
|
|
202
|
+ require('./react');
|
|
203
|
+
|
195
|
204
|
const isUIReady = APP.UI.start();
|
196
|
205
|
if (isUIReady) {
|
197
|
|
- APP.conference.init({roomName: buildRoomName()}).then(function () {
|
|
206
|
+ APP.conference.init({roomName: buildRoomName()}).then(() => {
|
198
|
207
|
|
199
|
208
|
if (APP.logCollector) {
|
200
|
209
|
// Start the LogCollector's periodic "store logs" task only if
|
|
@@ -227,13 +236,13 @@ function init() {
|
227
|
236
|
|
228
|
237
|
APP.UI.initConference();
|
229
|
238
|
|
230
|
|
- APP.UI.addListener(UIEvents.LANG_CHANGED, function (language) {
|
|
239
|
+ APP.UI.addListener(UIEvents.LANG_CHANGED, language => {
|
231
|
240
|
APP.translation.setLanguage(language);
|
232
|
241
|
APP.settings.setLanguage(language);
|
233
|
242
|
});
|
234
|
243
|
|
235
|
244
|
APP.keyboardshortcut.init();
|
236
|
|
- }).catch(function (err) {
|
|
245
|
+ }).catch(err => {
|
237
|
246
|
APP.UI.hideRingOverLay();
|
238
|
247
|
APP.API.notifyConferenceLeft(APP.conference.roomName);
|
239
|
248
|
logger.error(err);
|
|
@@ -284,14 +293,6 @@ $(document).ready(function () {
|
284
|
293
|
|
285
|
294
|
URLProcessor.setConfigParametersFromUrl();
|
286
|
295
|
|
287
|
|
- // TODO The execution of the mobile app starts from react/index.native.js.
|
288
|
|
- // Similarly, the execution of the Web app should start from
|
289
|
|
- // react/index.web.js for the sake of consistency and ease of understanding.
|
290
|
|
- // Temporarily though because we are at the beginning of introducing React
|
291
|
|
- // into the Web app, allow the execution of the Web app to start from app.js
|
292
|
|
- // in order to reduce the complexity of the beginning step.
|
293
|
|
- require('./react');
|
294
|
|
-
|
295
|
296
|
APP.init();
|
296
|
297
|
|
297
|
298
|
APP.translation.init(settings.getLanguage());
|