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