Partially prepare for eslint-plugin-flowtype 2.37.0

This commit is contained in:
Lyubo Marinov
2017-10-03 14:41:54 -05:00
parent 8f97da3265
commit 5561a9c031
10 changed files with 119 additions and 94 deletions
+4 -5
View File
@@ -1,17 +1,16 @@
/* global JitsiMeetJS */
import 'aui-css';
import 'aui-experimental-css';
import DeviceSelectionPopup from './DeviceSelectionPopup';
declare var JitsiMeetJS: Object;
let deviceSelectionPopup;
window.init = function(i18next) {
window.init = i18next => {
JitsiMeetJS.init({}).then(() => {
deviceSelectionPopup = new DeviceSelectionPopup(i18next);
});
};
window.addEventListener('beforeunload', () =>
deviceSelectionPopup.close());
window.addEventListener('beforeunload', () => deviceSelectionPopup.close());