Fix eslint warnings

This commit is contained in:
Saúl Ibarra Corretgé 2018-05-24 17:12:27 +02:00
parent f59a1f62b3
commit 6f35ddd792
2 changed files with 4 additions and 3 deletions

View file

@ -52,7 +52,7 @@ export default class Conference extends Component<*> {
const iframe = api.getIFrame();
setupScreenSharingForWindow(iframe);
new RemoteControl(iframe);
new RemoteControl(iframe); // eslint-disable-line no-new
setupAlwaysOnTopRender(api);
setupWiFiStats(iframe);
}

View file

@ -1,5 +1,5 @@
/* global __dirname, process */
// Electron includes
const electron = require('electron');
const APP = electron.app;
const BrowserWindow = electron.BrowserWindow;
@ -55,7 +55,7 @@ const jitsiMeetWindowOptions = {
function setAPPListeners() {
APP.on('ready', createJitsiMeetWindow);
APP.on('window-all-closed', () => {
// Don't quit the application for Mac OS
// Don't quit the application for macOS.
if (process.platform !== 'darwin') {
APP.quit();
}
@ -66,6 +66,7 @@ function setAPPListeners() {
}
});
APP.on('certificate-error',
// eslint-disable-next-line max-params
(event, webContents, url, error, certificate, callback) => {
if (url.startsWith('https://localhost')) {
event.preventDefault();