17 lines
432 B
JavaScript
17 lines
432 B
JavaScript
/* global JitsiMeetJS */
|
|
|
|
// FIXME: remove once atlaskit work with React 16.
|
|
import '../base/react/prop-types-polyfill.js';
|
|
|
|
import DeviceSelectionPopup from './DeviceSelectionPopup';
|
|
|
|
let deviceSelectionPopup;
|
|
|
|
window.init = i18next => {
|
|
JitsiMeetJS.init({}).then(() => {
|
|
deviceSelectionPopup = new DeviceSelectionPopup(i18next);
|
|
});
|
|
};
|
|
|
|
window.addEventListener('beforeunload', () => deviceSelectionPopup.close());
|