Skip to content

Commit

Permalink
Update WebAuthenticator.cs
Browse files Browse the repository at this point in the history
Ignore the ""NSURLErrorDomain -999" authentication error with Instagram. Issue Clancey#98
  • Loading branch information
allan-chin committed Jul 25, 2019
1 parent d2ff1ef commit 37cdbf6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/SimpleAuth.Mac/WebAuthenticator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ public void FinishedLoad (WebView sender, WebFrame forFrame)
[Foundation.Export ("webView:didFailLoadWithError:forFrame:")]
public void FailedLoadWithError (WebView sender, NSError error, WebFrame forFrame)
{
Authenticator.OnError (error.LocalizedDescription);
// Ignore the ""NSURLErrorDomain -999" authentication error with Instagram. Issue #98.
if (error.Code != -999)
Authenticator.OnError (error.LocalizedDescription);
}

[Foundation.Export ("webView:didFailProvisionalLoadWithError:forFrame:")]
Expand Down

0 comments on commit 37cdbf6

Please sign in to comment.