2017-10-03 19:24:00 +00:00
|
|
|
/* global JitsiMeetJS */
|
|
|
|
|
2017-06-04 03:12:04 +00:00
|
|
|
import 'aui-css';
|
|
|
|
import 'aui-experimental-css';
|
|
|
|
|
|
|
|
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());
|