File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -670,6 +670,10 @@ - (void)webView:(WKWebView*)webView didStartProvisionalNavigation:(WKNavigation*
670
670
671
671
- (void )webView : (WKWebView *)webView didFinishNavigation : (WKNavigation *)navigation
672
672
{
673
+ #ifndef __CORDOVA_6_0_0
674
+ CDVViewController* vc = (CDVViewController*)self.viewController ;
675
+ [CDVUserAgentUtil releaseLock: vc.userAgentLockToken];
676
+ #endif
673
677
[[NSNotificationCenter defaultCenter ] postNotification: [NSNotification notificationWithName: CDVPageDidLoadNotification object: webView]];
674
678
}
675
679
@@ -681,6 +685,9 @@ - (void)webView:(WKWebView*)theWebView didFailProvisionalNavigation:(WKNavigatio
681
685
- (void )webView : (WKWebView *)theWebView didFailNavigation : (WKNavigation *)navigation withError : (NSError *)error
682
686
{
683
687
CDVViewController* vc = (CDVViewController*)self.viewController ;
688
+ #ifndef __CORDOVA_6_0_0
689
+ [CDVUserAgentUtil releaseLock: vc.userAgentLockToken];
690
+ #endif
684
691
685
692
NSString * message = [NSString stringWithFormat: @" Failed to load webpage with error: %@ " , [error localizedDescription ]];
686
693
NSLog (@" %@ " , message);
You can’t perform that action at this time.
0 commit comments