Skip to content

Commit

Permalink
Adjust coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
eJamesLin committed Jun 10, 2020
1 parent 26e6cd6 commit a0a4ec3
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions ios/Classes/InAppWebView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2129,15 +2129,16 @@ public class InAppWebView: WKWebView, UIScrollViewDelegate, WKUIDelegate, WKNavi
}

let socialLogin = SocialLogin(url: url)
if case .none = socialLogin {
switch socialLogin {
case .none:
onCreateWindow(url: url, navigationType: navigationAction.navigationType)
return nil
case .facebook, .google:
return createSocialLoginWindow(from: webView,
createWebViewWith: configuration,
urlRequest: navigationAction.request,
socialLogin: socialLogin)
}

return createSocialLoginWindow(from: webView,
createWebViewWith: configuration,
urlRequest: navigationAction.request,
socialLogin: socialLogin)
}

public func webViewDidClose(_ webView: WKWebView) {
Expand Down

0 comments on commit a0a4ec3

Please sign in to comment.