fix: fix buf #17
This commit is contained in:
parent
3dc79486c3
commit
cbc4eec551
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue