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*
670670
671671- (void )webView : (WKWebView *)webView didFinishNavigation : (WKNavigation *)navigation
672672{
673+ #ifndef __CORDOVA_6_0_0
674+ CDVViewController* vc = (CDVViewController*)self.viewController ;
675+ [CDVUserAgentUtil releaseLock: vc.userAgentLockToken];
676+ #endif
673677 [[NSNotificationCenter defaultCenter ] postNotification: [NSNotification notificationWithName: CDVPageDidLoadNotification object: webView]];
674678}
675679
@@ -681,6 +685,9 @@ - (void)webView:(WKWebView*)theWebView didFailProvisionalNavigation:(WKNavigatio
681685- (void )webView : (WKWebView *)theWebView didFailNavigation : (WKNavigation *)navigation withError : (NSError *)error
682686{
683687 CDVViewController* vc = (CDVViewController*)self.viewController ;
688+ #ifndef __CORDOVA_6_0_0
689+ [CDVUserAgentUtil releaseLock: vc.userAgentLockToken];
690+ #endif
684691
685692 NSString * message = [NSString stringWithFormat: @" Failed to load webpage with error: %@ " , [error localizedDescription ]];
686693 NSLog (@" %@ " , message);
You can’t perform that action at this time.
0 commit comments