refactor: 1.0.2

pull/180/head
xiaojunnuo 2020-11-11 15:49:26 +08:00
parent 8eeb6d0a13
commit 34c4067a20
3 changed files with 8 additions and 6 deletions

View File

@ -1,7 +1,8 @@
# dev-sidecar
开发者边车命名取自service-mesh的service-sidecar意为为开发者打辅助的边车工具
通过本地代理的方式将http请求代理到一些国内的加速通道上
解决一些网站和库无法访问或访问速度慢的问题
通过本地代理的方式将http请求代理到一些国内的加速通道上
不用翻墙也能解决一些网站和库无法访问或访问速度慢的问题
## 特性

View File

@ -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()

View File

@ -0,0 +1 @@
console.log("www.baidu.com".match('.*.baidu.com'))