2017-06-04 03:12:04 +00:00
|
|
|
import 'aui-css';
|
|
|
|
import 'aui-experimental-css';
|
|
|
|
|
|
|
|
import DeviceSelectionPopup from './DeviceSelectionPopup';
|
|
|
|
|
2017-06-13 00:12:29 +00:00
|
|
|
declare var JitsiMeetJS: Object;
|
|
|
|
|
2017-06-04 03:12:04 +00:00
|
|
|
let deviceSelectionPopup;
|
|
|
|
|
|
|
|
window.init = function(i18next) {
|
2017-06-13 00:12:29 +00:00
|
|
|
JitsiMeetJS.init({}).then(() => {
|
|
|
|
deviceSelectionPopup = new DeviceSelectionPopup(i18next);
|
|
|
|
});
|
2017-06-04 03:12:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
window.addEventListener('beforeunload', () =>
|
|
|
|
deviceSelectionPopup.close());
|