refactor: 1.0.2
parent
8eeb6d0a13
commit
34c4067a20
|
@ -1,7 +1,8 @@
|
|||
# dev-sidecar
|
||||
开发者边车,命名取自service-mesh的service-sidecar,意为为开发者打辅助的边车工具
|
||||
通过本地代理的方式将http请求代理到一些国内的加速通道上
|
||||
解决一些网站和库无法访问或访问速度慢的问题
|
||||
通过本地代理的方式将http请求代理到一些国内的加速通道上
|
||||
不用翻墙也能解决一些网站和库无法访问或访问速度慢的问题
|
||||
|
||||
|
||||
|
||||
## 特性
|
||||
|
|
|
@ -125,12 +125,12 @@ if (!isFirstInstance) {
|
|||
}, 1000)
|
||||
} else {
|
||||
app.on('before-quit', async (event) => {
|
||||
console.log('before-quit', event)
|
||||
console.log('before-quit')
|
||||
if (!isShutdown) {
|
||||
event.preventDefault()
|
||||
if (tray) {
|
||||
tray.displayBalloon({ title: '正在关闭,请稍候...', content: '正在关闭中,请稍候。。。' })
|
||||
}
|
||||
// if (tray) {
|
||||
// tray.displayBalloon({ title: '正在关闭,请稍候...', content: '正在关闭中,请稍候。。。' })
|
||||
// }
|
||||
await bridge.devSidecar.api.shutdown()
|
||||
isShutdown = true
|
||||
app.quit()
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
console.log("www.baidu.com".match('.*.baidu.com'))
|
Loading…
Reference in New Issue