Fixed wrong Domain retrieving.
This commit is contained in:
parent
9a0fe67886
commit
008ecb1468
|
|
@ -48,8 +48,8 @@ open class ReCaptcha: ReCaptchaWebViewManager {
|
|||
guard let apiKey = apiKey ?? (infoDict?[Constants.InfoDictKeys.APIKey] as? String) else {
|
||||
throw NSError(code: .apiKeyNotFound)
|
||||
}
|
||||
|
||||
guard let domain = infoDict?[Constants.InfoDictKeys.Domain] as? String, let baseURL = baseURL ?? URL(string: domain) else {
|
||||
|
||||
guard let baseURL = baseURL ?? URL(string: (infoDict?[Constants.InfoDictKeys.Domain] as? String) ?? "") else {
|
||||
throw NSError(code: .baseURLNotFound)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue