|
@@ -6,9 +6,11 @@ import ReactDOM from 'react-dom';
|
6
|
6
|
import { getJitsiMeetTransport } from '../modules/transport';
|
7
|
7
|
|
8
|
8
|
import { App } from './features/app/components';
|
|
9
|
+import { browser } from './features/base/lib-jitsi-meet';
|
9
|
10
|
import { getLogger } from './features/base/logging/functions';
|
10
|
11
|
import { Platform } from './features/base/react';
|
11
|
12
|
import { getJitsiMeetGlobalNS } from './features/base/util';
|
|
13
|
+import { loadScript } from './features/base/util/loadScript';
|
12
|
14
|
import PrejoinApp from './features/prejoin/components/PrejoinApp';
|
13
|
15
|
|
14
|
16
|
const logger = getLogger('index.web');
|
|
@@ -22,6 +24,12 @@ document.addEventListener('DOMContentLoaded', () => {
|
22
|
24
|
|
23
|
25
|
APP.connectionTimes['document.ready'] = now;
|
24
|
26
|
logger.log('(TIME) document ready:\t', now);
|
|
27
|
+
|
|
28
|
+ if (!browser.isElectron()) {
|
|
29
|
+ const base = window.location.origin;
|
|
30
|
+
|
|
31
|
+ loadScript(`${base}/static/pwa/registrator.js`);
|
|
32
|
+ }
|
25
|
33
|
});
|
26
|
34
|
|
27
|
35
|
// Workaround for the issue when returning to a page with the back button and
|