Removed unneeded settings
This commit is contained in:
parent
ef27e54d0e
commit
aa46cc2600
5
main.go
5
main.go
|
@ -67,10 +67,7 @@ func saveConfig() error {
|
|||
func validateOpt(opt, val string) bool {
|
||||
var validOpts = map[string][]string{
|
||||
"webmode": []string{"none", "gui", "lynx", "w3m", "elinks"},
|
||||
"openhttp": []string{"true", "false"},
|
||||
"theme": []string{"normal", "inverse"},
|
||||
"terminalonly": []string{"true", "false"},
|
||||
"lynxmode": []string{"true", "false"},
|
||||
}
|
||||
|
||||
opt = strings.ToLower(opt)
|
||||
|
@ -89,7 +86,7 @@ func validateOpt(opt, val string) bool {
|
|||
|
||||
func lowerCaseOpt(opt, val string) string {
|
||||
switch opt {
|
||||
case "openhttp", "theme", "terminalonly":
|
||||
case "webmode", "theme":
|
||||
return strings.ToLower(val)
|
||||
default:
|
||||
return val
|
||||
|
|
Loading…
Reference in New Issue