fix: fix buf #17

This commit is contained in:
johlanse 2021-12-24 11:47:45 +08:00
parent 3dc79486c3
commit cbc4eec551
1 changed files with 2 additions and 3 deletions

View File

@ -3,7 +3,6 @@ package lib
import (
_ "embed"
"os"
"runtime"
log "github.com/sirupsen/logrus"
"gopkg.in/yaml.v2"
@ -59,8 +58,8 @@ func GetConfig() Config {
log.Errorln(err.Error())
return Config{}
}
if runtime.GOOS == "linux" {
config.ShowBrowser = false
if config.ShowBrowser {
log.Infoln("浏览器无头模式已禁用")
}
return config
}