From 905b1f1685739419c208f2cc6f25840467d1cb76 Mon Sep 17 00:00:00 2001 From: Erisu Date: Fri, 7 Feb 2020 09:39:24 +0900 Subject: [PATCH] refactor: add back CDVWebViewNavigationTypeOther but defined as -1 --- .../CDVIntentAndNavigationFilter.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CordovaLib/Classes/Private/Plugins/CDVIntentAndNavigationFilter/CDVIntentAndNavigationFilter.m b/CordovaLib/Classes/Private/Plugins/CDVIntentAndNavigationFilter/CDVIntentAndNavigationFilter.m index b876d3182..3f9af09ee 100644 --- a/CordovaLib/Classes/Private/Plugins/CDVIntentAndNavigationFilter/CDVIntentAndNavigationFilter.m +++ b/CordovaLib/Classes/Private/Plugins/CDVIntentAndNavigationFilter/CDVIntentAndNavigationFilter.m @@ -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