Fix: better logging for when protocol isn't found on

This commit is contained in:
Flávio Caetano 2018-01-26 11:37:10 -05:00
parent 5f1624b9e1
commit 3685f7d195
1 changed files with 4 additions and 1 deletions

View File

@ -143,8 +143,11 @@ private extension ReCaptcha.Config {
return url
}
#if DEBUG
print("⚠️ WARNING! Protocol not found for ReCaptcha domain (\(url))! You should add http:// or https:// to it!")
#endif
if let fixedURL = URL(string: "http://" + url.absoluteString) {
debugPrint("[ReCaptcha] - Prepending 'http://' to url (\(url))")
return fixedURL
}