From edb9f0325b867933da091542e6a2ea7a74a35abc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Fri, 15 Nov 2024 13:57:32 +0800 Subject: [PATCH] fix style --- packages/gui/src/background.js | 1 + test/test.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/gui/src/background.js b/packages/gui/src/background.js index 8a88442..71570c2 100644 --- a/packages/gui/src/background.js +++ b/packages/gui/src/background.js @@ -19,6 +19,7 @@ const _powerMonitor = isWindows ? require('./background/powerMonitor').powerMoni // be closed automatically when the JavaScript object is garbage collected. let win let winIsHidden = false + let tray // 防止被内存清理 let forceClose = false DevSidecar.api.config.reload() diff --git a/test/test.js b/test/test.js index a23a57b..9b47d71 100644 --- a/test/test.js +++ b/test/test.js @@ -23,7 +23,7 @@ // const content = fs.readFileSync('C:\\Users\\Administrator\\.dev-sidecar\\dev-sidecar.ca.crt') // console.log('content:',JSON.stringify(content.toString().replace(new RegExp('\r\n','g'),'\n'))) -// function testCa() { +// function testCa () { // const https = require('https') // const fs = require('fs') // process.env.NODE_EXTRA_CA_CERTS = 'C:\\Users\\Administrator\\.dev-sidecar\\dev-sidecar.ca.crt'