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 318B

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