refactor: 禁用gpu尝试
parent
8ae48ae4d7
commit
d8a0197063
File diff suppressed because it is too large
Load Diff
|
@ -115,7 +115,9 @@ function quit (app) {
|
|||
}
|
||||
|
||||
// -------------执行开始---------------
|
||||
app.disableHardwareAcceleration() // 禁用gpu
|
||||
|
||||
// 禁止双开
|
||||
const isFirstInstance = app.requestSingleInstanceLock()
|
||||
let isShutdown = false
|
||||
if (!isFirstInstance) {
|
||||
|
@ -186,6 +188,7 @@ if (!isFirstInstance) {
|
|||
updateUrl = 'https://dev-sidecar.docmirror.cn/update/'
|
||||
// updateUrl = 'http://localhost/dev-sidecar/'
|
||||
}
|
||||
// 自动更新
|
||||
updateHandle(win, updateUrl)
|
||||
try {
|
||||
// 最小化到托盘
|
||||
|
|
|
@ -9,8 +9,7 @@
|
|||
"author": "docmirror.cn",
|
||||
"license": "MPL-2.0",
|
||||
"private": false,
|
||||
"scripts": {
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {
|
||||
"agentkeepalive": "^2.1.1",
|
||||
"child_process": "^1.0.2",
|
||||
|
@ -19,6 +18,7 @@
|
|||
"debug": "^4.1.1",
|
||||
"dns-over-http": "^0.2.0",
|
||||
"dns-over-tls": "^0.0.8",
|
||||
"is-browser": "^2.1.0",
|
||||
"json5": "^2.1.3",
|
||||
"lodash": "^4.7.0",
|
||||
"log4js": "^6.3.0",
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
require('babel-polyfill')
|
||||
// require('babel-polyfill')
|
||||
module.exports = require('./mitmproxy')
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue