refactor: doc

pull/67/head
xiaojunnuo 2021-03-27 17:41:04 +08:00
parent e6d4ae6753
commit 4d4db468e9
2 changed files with 24 additions and 10 deletions

View File

@ -238,9 +238,16 @@ mac 代理查看
### 3、浏览器打开提示证书不受信任
windows: 请确认证书已正确安装在“信任的根证书颁发机构”下
* windows: 请确认证书已正确安装在“信任的根证书颁发机构”下
mac: 请确认证书已经被安装并已经设置信任。
* mac: 请确认证书已经被安装并已经设置信任。
* 火狐浏览器:
火狐浏览器不走系统的根证书,需要在选项中添加根证书
1、火狐浏览器->选项->隐私与安全->证书->查看证书
2、证书颁发机构->导入
3、选择证书文件`C:\Users\Administrator\.dev-sidecar\dev-sidecar.ca.crt`Mac为`~/.dev-sidecar`目录)
4、勾选信任由此证书颁发机构来标识网站确定即可
### 4. 打开github显示连接超时
请右键退出dev-sidecar
@ -253,6 +260,7 @@ mac: 请确认证书已经被安装并已经设置信任。
![](./doc/log.png)
## 联系作者
欢迎bug反馈需求建议技术交流等请备注dev-sidecar或简称DS

View File

@ -77,6 +77,15 @@ function setTray (app) {
function createWindow () {
// Create the browser window.
let startHideWindow = false
if (process.argv) {
const args = minimist(process.argv)
if (args.hideWindow) {
startHideWindow = true
}
}
win = new BrowserWindow({
width: 900,
height: 750,
@ -88,6 +97,7 @@ function createWindow () {
// See nklayman.github.io/vue-cli-plugin-electron-builder/guide/security.html#node-integration for more info
nodeIntegration: true// process.env.ELECTRON_NODE_INTEGRATION
},
show: !startHideWindow,
// eslint-disable-next-line no-undef
icon: path.join(__static, 'icon.png')
})
@ -102,6 +112,10 @@ function createWindow () {
win.loadURL('app://./index.html')
}
if (startHideWindow) {
win.hide()
}
win.on('closed', async (e) => {
win = null
tray = null
@ -113,14 +127,6 @@ function createWindow () {
win.hide()
}
})
if (process.argv) {
const args = minimist(process.argv)
console.log('start args', args)
if (args.hideWindow) {
win.hide()
}
}
}
async function beforeQuit () {