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.

popup.js 406B

123456789101112131415
  1. /* global JitsiMeetJS */
  2. // FIXME: remove once atlaskit work with React 16.
  3. import '../base/react/prop-types-polyfill.js';
  4. import DeviceSelectionPopup from './DeviceSelectionPopup';
  5. let deviceSelectionPopup;
  6. window.init = i18next => {
  7. JitsiMeetJS.init();
  8. deviceSelectionPopup = new DeviceSelectionPopup(i18next);
  9. };
  10. window.addEventListener('beforeunload', () => deviceSelectionPopup.close());