You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516
  1. /* global JitsiMeetJS */
  2. import 'aui-css';
  3. import 'aui-experimental-css';
  4. import DeviceSelectionPopup from './DeviceSelectionPopup';
  5. let deviceSelectionPopup;
  6. window.init = i18next => {
  7. JitsiMeetJS.init({}).then(() => {
  8. deviceSelectionPopup = new DeviceSelectionPopup(i18next);
  9. });
  10. };
  11. window.addEventListener('beforeunload', () => deviceSelectionPopup.close());