jiti-meet/react/features/settings/popup.js

13 lines
322 B
JavaScript
Raw Normal View History

/* global JitsiMeetJS */
import DeviceSelectionPopup from './components/web/DeviceSelectionPopup';
let deviceSelectionPopup;
window.init = i18next => {
JitsiMeetJS.init();
deviceSelectionPopup = new DeviceSelectionPopup(i18next);
};
window.addEventListener('beforeunload', () => deviceSelectionPopup.close());