|
@@ -92,6 +92,15 @@ const gotTheLock = app.requestSingleInstanceLock()
|
|
if (!gotTheLock) {
|
|
if (!gotTheLock) {
|
|
app.quit()
|
|
app.quit()
|
|
} else {
|
|
} else {
|
|
|
|
+
|
|
|
|
+ * 兼容https非可信域
|
|
|
|
+ */
|
|
|
|
+ app.on('certificate-error', (event, webContents, url, error, certificate, callback) => {
|
|
|
|
+ log('certificate-error');
|
|
|
|
+
|
|
|
|
+ event.preventDefault()
|
|
|
|
+ callback(true)
|
|
|
|
+ });
|
|
app.on('second-instance', (event) => {
|
|
app.on('second-instance', (event) => {
|
|
if (mainWindow) {
|
|
if (mainWindow) {
|
|
if (mainWindow.isMinimized()) mainWindow.restore()
|
|
if (mainWindow.isMinimized()) mainWindow.restore()
|