NJKWebViewProgress icon indicating copy to clipboard operation
NJKWebViewProgress copied to clipboard

Server not found errors not handled correctly

Open futuretap opened this issue 11 years ago • 1 comments

Try accessing "http://www.koreanpalace.com/". The server isn't found but

    BOOL isNotRedirect = _currentURL && [_currentURL isEqual:webView.request.mainDocumentURL];

isn't YES because webView.request.mainDocumentURL is nil.

futuretap avatar Apr 29 '14 11:04 futuretap

BOOL isNotRedirect = _currentURL && ([_currentURL isEqual:webView.request.mainDocumentURL] || !webView.request.mainDocumentURL);

this should do the trick. Hope it doesn't have any bad side effects…

futuretap avatar Apr 29 '14 11:04 futuretap