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'