Fix Let's Encrypt DST Root CA X3 certificate expiration.

This commit is contained in:
Daniel Scalzi
2021-10-01 21:57:22 -04:00
parent 54e6572754
commit f9e4fd8561
3 changed files with 238 additions and 349 deletions

View File

@@ -1,4 +1,5 @@
require('@electron/remote/main').initialize()
const remoteMain = require('@electron/remote/main')
remoteMain.initialize()
// Requirements
const { app, BrowserWindow, ipcMain, Menu } = require('electron')
@@ -104,11 +105,11 @@ function createWindow() {
webPreferences: {
preload: path.join(__dirname, 'app', 'assets', 'js', 'preloader.js'),
nodeIntegration: true,
contextIsolation: false,
enableRemoteModule: true
contextIsolation: false
},
backgroundColor: '#171614'
})
remoteMain.enable(win.webContents)
ejse.data('bkid', Math.floor((Math.random() * fs.readdirSync(path.join(__dirname, 'app', 'assets', 'images', 'backgrounds')).length)))