diff --git a/public/electron.js b/public/electron.js index a5bd793..1024383 100644 --- a/public/electron.js +++ b/public/electron.js @@ -3,6 +3,7 @@ const url = require("url"); const { app, BrowserWindow, ipcMain, shell, +// eslint-disable-next-line import/no-extraneous-dependencies } = require('electron'); const createWindow = () => { @@ -67,7 +68,7 @@ app.whenReady().then(() => { if (BrowserWindow.getAllWindows().length === 0) createWindow(); }); - app.on('certificate-error', (event, callback) => { + app.on('certificate-error', (event, webContents, url, error, certificate, callback) => { // On certificate error we disable default behaviour (stop loading the page) // and we then say "it is all fine - true" to the callback event.preventDefault(); diff --git a/public/preload.js b/public/preload.js index d1889e9..7892b9b 100644 --- a/public/preload.js +++ b/public/preload.js @@ -1,5 +1,6 @@ // All of the Node.js APIs are available in the preload process. // It has the same sandbox as a Chrome extension. +// eslint-disable-next-line import/no-extraneous-dependencies const { ipcRenderer } = require("electron"); const Socket = require('simple-websocket');