Fix #54: try other ways to load favicon

- try to replace http to https
- if a url does not start with http or https, try to add https
- return if cannot form a URL
This commit is contained in:
Bob Sun 2017-03-15 14:14:42 -07:00
parent 83e55403e5
commit f573be9ee0
2 changed files with 22 additions and 4 deletions

View file

@ -73,7 +73,7 @@ class Password {
return getAdditionValue(withKey: "Username") ?? getAdditionValue(withKey: "username")
}
func getURL() -> String? {
func getURLString() -> String? {
return getAdditionValue(withKey: "URL") ?? getAdditionValue(withKey: "url") ?? getAdditionValue(withKey: "Url")
}