Skip to content

Commit

Permalink
Lint error fix 🔧
Browse files Browse the repository at this point in the history
  • Loading branch information
Lplenka committed Apr 27, 2017
1 parent 6382c6d commit 487ee53
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions app/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ const path = require('path');
const fs = require('fs');
const os = require('os');
const electron = require('electron');
const { app } = require('electron');
const {app} = require('electron');
const ipc = require('electron').ipcMain;
const { dialog } = require('electron');
const {dialog} = require('electron');
const https = require('https');
const http = require('http');
const electronLocalshortcut = require('electron-localshortcut');
const Configstore = require('electron-config');
const JsonDB = require('node-json-db');
const isDev = require('electron-is-dev');
const appMenu = require('./menu');
const { linkIsInternal, skipImages } = require('./link-helper');
const { appUpdater } = require('./autoupdater');
const {linkIsInternal, skipImages} = require('./link-helper');
const {appUpdater} = require('./autoupdater');

const db = new JsonDB(app.getPath('userData') + '/domain.json', true, true);
const data = db.getData('/');
Expand Down Expand Up @@ -103,7 +103,7 @@ function checkConnectivity() {
function checkConnection() {
// eslint-disable-next-line no-unused-vars
mainWindow.webContents.on('did-fail-load', (event, errorCode, errorDescription, validatedURL) => {
if (errorDescription === 'ERR_INTERNET_DISCONNECTED' || errorDescription === 'ERR_PROXY_CONNECTION_FAILED' || errorDescription === 'ERR_CONNECTION_RESET' ) {
if (errorDescription === 'ERR_INTERNET_DISCONNECTED' || errorDescription === 'ERR_PROXY_CONNECTION_FAILED' || errorDescription === 'ERR_CONNECTION_RESET') {
console.log('Error Description:' + errorDescription);
checkConnectivity();
}
Expand Down Expand Up @@ -248,10 +248,11 @@ function createMainWindow() {
// app.commandLine.appendSwitch('ignore-certificate-errors', 'true');

// For self-signed certificate
// eslint-disable-next-line max-params
app.on('certificate-error', (event, webContents, url, error, certificate, callback) => {
console.log("warning: ", url, " certificate-error");
event.preventDefault()
callback(true)
console.log('warning: ', url, ' certificate-error');
event.preventDefault();
callback(true);
});

app.on('window-all-closed', () => {
Expand Down

0 comments on commit 487ee53

Please sign in to comment.