From e2c886c1a42283e9cba31476daee42a2b0d0dab8 Mon Sep 17 00:00:00 2001 From: Handle Date: Tue, 16 Apr 2019 03:09:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=EF=BC=9A=E7=8E=B0=E5=9C=A8?= =?UTF-8?q?=E5=8F=AA=E4=BC=9A=E8=87=AA=E5=8A=A8=E4=BF=A1=E4=BB=BB=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E7=9A=84=E4=B8=8D=E5=AE=89=E5=85=A8=E8=AF=81=E4=B9=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.js b/index.js index fad2e88..a1ed73c 100644 --- a/index.js +++ b/index.js @@ -108,8 +108,6 @@ process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0' server.get('*', Util.processRequest) -// electronApp.commandLine.appendSwitch('ignore-certificate-errors') - electronApp.commandLine.appendSwitch( 'autoplay-policy', 'no-user-gesture-required' @@ -129,7 +127,7 @@ electronApp.on( 'certificate-error', (event, webContents, url, error, certificate, callback) => { if ( - certificate.fingerprint === '8f27c5f7a0a209da7948db0d2fcd42bac89a1005' + certificate.fingerprint === 'sha256/UMNIGcBbbIcru/0L2e1idl+aQS7PUHqsZDcrETqdMsc=' ) { event.preventDefault() callback(true) // eslint-disable-line standard/no-callback-literal