Removed unneeded settings

This commit is contained in:
sloumdrone 2019-11-14 20:35:34 -08:00
parent ef27e54d0e
commit aa46cc2600
1 changed files with 3 additions and 6 deletions

View File

@ -66,11 +66,8 @@ 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"},
"webmode": []string{"none", "gui", "lynx", "w3m", "elinks"},
"theme": []string{"normal", "inverse"},
}
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