ShawnFoo / SwiftWebViewBridge

Swift version of WebViewJavascriptBridge with more simplified and friendly methods to handle messages between Swift and JS in UIWebViews
MIT License
137 stars 34 forks source link

ERROR in webView:didFailLoadWithError: #2

Closed libern closed 8 years ago

libern commented 8 years ago
func webView(webView: UIWebView, didFailLoadWithError error: NSError?) {
        print("Failed to load")
        print(error?.localizedDescription)
}

This function will print error message every time when iframe's source changed

The URL can’t be shown:
swvbscheme://__SWVB_Host_MESSAGE__
ShawnFoo commented 8 years ago

Thanks. Since I forgot to return false in the method

This will be fixed in next commit.