Skip to content

Commit

Permalink
refactor: add back CDVWebViewNavigationTypeOther but defined as -1
Browse files Browse the repository at this point in the history
  • Loading branch information
erisu committed Feb 7, 2020
1 parent fca8c06 commit 905b1f1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,14 @@ - (CDVIntentAndNavigationFilterValue) filterUrl:(NSURL*)url
}

#define CDVWebViewNavigationTypeLinkClicked 0
#define CDVWebViewNavigationTypeLinkOther -1

+ (BOOL)shouldOpenURLRequest:(NSURLRequest*)request navigationType:(CDVWebViewNavigationType)navigationType
{
return (CDVWebViewNavigationTypeLinkClicked == navigationType);
return (
navigationType == CDVWebViewNavigationTypeLinkClicked ||
navigationType == CDVWebViewNavigationTypeLinkOther
);
}

+ (BOOL)shouldOverrideLoadWithRequest:(NSURLRequest*)request navigationType:(CDVWebViewNavigationType)navigationType filterValue:(CDVIntentAndNavigationFilterValue)filterValue
Expand Down

0 comments on commit 905b1f1

Please sign in to comment.