From 6b7d2ea657c526225bfd449acd3e162770e15152 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Fri, 8 Jan 2021 22:57:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/index.js b/src/main/index.js index 7ab4415e..60d30e5d 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -28,15 +28,15 @@ console.log(global.envParams.cmdParams) // Is disable hardware acceleration if (global.envParams.cmdParams.dha) app.disableHardwareAcceleration() +// https://github.com/electron/electron/issues/22691 +app.commandLine.appendSwitch('wm-window-animations-disabled') + const { navigationUrlWhiteList } = require('../common/config') const { getWindowSizeInfo } = require('./utils') const { isMac, isLinux, initSetting, initHotKey } = require('../common/utils') -// https://github.com/electron/electron/issues/22691 -app.commandLine.appendSwitch('wm-window-animations-disabled') - // https://github.com/electron/electron/issues/18397 // 开发模式下为true时 多次引入native模块会导致渲染进程卡死 // https://github.com/electron/electron/issues/22791