From ad9acdf02e22a9d4ee2fbb684acb7c636e696892 Mon Sep 17 00:00:00 2001 From: CM Date: Mon, 26 Dec 2022 19:41:05 +0000 Subject: [PATCH] Fixing beet connect warning --- public/electron.js | 3 ++- public/preload.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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');