File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -367,7 +367,7 @@ - (void)webAuthenticationDidCompleteWithURL:(NSURL *)endURL
367367 if ( nil != _authenticationViewController)
368368 {
369369 // Dismiss the authentication view and dispatch the completion block
370- [[UIApplication adCurrentViewController ] dismissViewControllerAnimated: YES completion: ^{
370+ [parentController dismissViewControllerAnimated: YES completion: ^{
371371 [self dispatchCompletionBlock: nil URL: endURL];
372372 }];
373373 }
@@ -390,7 +390,7 @@ - (void)webAuthenticationDidFailWithError:(NSError *)error
390390 if ( nil != _authenticationViewController)
391391 {
392392 // Dismiss the authentication view and dispatch the completion block
393- [[UIApplication adCurrentViewController ] dismissViewControllerAnimated: YES completion: ^{
393+ [parentController dismissViewControllerAnimated: YES completion: ^{
394394 [self dispatchCompletionBlock: adError URL: nil ];
395395 }];
396396 }
You can’t perform that action at this time.
0 commit comments