Skip to content

Commit

Permalink
Fixing beet connect warning
Browse files Browse the repository at this point in the history
  • Loading branch information
grctest committed Dec 26, 2022
1 parent 6c3f3a3 commit ad9acdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions public/preload.js
Original file line number Diff line number Diff line change
@@ -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');

Expand Down

0 comments on commit ad9acdf

Please sign in to comment.