Skip to content

Commit

Permalink
If the webview is not our webview then we should not be making nagiva…
Browse files Browse the repository at this point in the history
…tion action decisions for it.
  • Loading branch information
marcuswestin committed Jun 14, 2013
1 parent 57ee322 commit 254ea00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WebViewJavascriptBridge/WebViewJavascriptBridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ - (void)webView:(WebView *)webView didFailLoadWithError:(NSError *)error forFram

- (void)webView:(WebView *)webView decidePolicyForNavigationAction:(NSDictionary *)actionInformation request:(NSURLRequest *)request frame:(WebFrame *)frame decisionListener:(id<WebPolicyDecisionListener>)listener
{
if (webView != _webView) { [listener use]; }
if (webView != _webView) { return; }

NSURL *url = [request URL];
if ([[url scheme] isEqualToString:kCustomProtocolScheme]) {
Expand Down

0 comments on commit 254ea00

Please sign in to comment.