2017-10-03 19:24:00 +00:00
|
|
|
/* global JitsiMeetJS */
|
|
|
|
|
2017-11-28 02:31:59 +00:00
|
|
|
// FIXME: remove once atlaskit work with React 16.
|
|
|
|
import '../base/react/prop-types-polyfill.js';
|
|
|
|
|
2017-06-04 03:12:04 +00:00
|
|
|
import DeviceSelectionPopup from './DeviceSelectionPopup';
|
|
|
|
|
|
|
|
let deviceSelectionPopup;
|
|
|
|
|
2017-10-03 19:24:00 +00:00
|
|
|
window.init = i18next => {
|
2017-06-13 00:12:29 +00:00
|
|
|
JitsiMeetJS.init({}).then(() => {
|
|
|
|
deviceSelectionPopup = new DeviceSelectionPopup(i18next);
|
|
|
|
});
|
2017-06-04 03:12:04 +00:00
|
|
|
};
|
|
|
|
|
2017-10-03 19:24:00 +00:00
|
|
|
window.addEventListener('beforeunload', () => deviceSelectionPopup.close());
|