Skip to content

Commit

Permalink
✨ 순환참조
Browse files Browse the repository at this point in the history
  • Loading branch information
kimsh153 committed Feb 9, 2023
1 parent f6f5c8e commit ce6e6f8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ final class GAuthSigninWebViewController: UIViewController, WKNavigationDelegate
let urlString = navigationAction.request.url?.absoluteString ?? ""
if urlString.contains("code=") {
DispatchQueue.main.async {
self.dismiss(animated: true) {
self.completion(urlString.components(separatedBy: "code=")[1])
self.dismiss(animated: true) { [weak self] in
self?.completion(urlString.components(separatedBy: "code=")[1])
}
}
}
Expand Down

0 comments on commit ce6e6f8

Please sign in to comment.