当scheme为空时写入默认的scheme

This commit is contained in:
johlanse 2022-02-16 15:12:16 +08:00
parent b990d7856f
commit 94b98b04de
1 changed files with 3 additions and 0 deletions

View File

@ -73,5 +73,8 @@ func GetConfig() Config {
if config.ShowBrowser {
log.Infoln("浏览器无头模式已禁用")
}
if config.Scheme == "" {
config.Scheme = "https://johlanse.github.io/study_xxqg/scheme.html?"
}
return config
}