Skip to content

Commit

Permalink
Merge pull request #22 from OutSystems/feature/fixUserAgent
Browse files Browse the repository at this point in the history
RMET-311: Fix user agent being reused in WKWebView for OutsystemsApps.
  • Loading branch information
GFOutsystems authored Dec 4, 2020
2 parents 4a12970 + 6b204ae commit 79bfdb3
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/ios/CDVWKInAppBrowser.m
Original file line number Diff line number Diff line change
Expand Up @@ -729,15 +729,6 @@ - (void)createViews
WKUserContentController* userContentController = [[WKUserContentController alloc] init];

WKWebViewConfiguration* configuration = [[WKWebViewConfiguration alloc] init];

NSString *userAgent = configuration.applicationNameForUserAgent;
if (
[self settingForKey:@"OverrideUserAgent"] == nil &&
[self settingForKey:@"AppendUserAgent"] != nil
) {
userAgent = [NSString stringWithFormat:@"%@ %@", userAgent, [self settingForKey:@"AppendUserAgent"]];
}
configuration.applicationNameForUserAgent = userAgent;
configuration.userContentController = userContentController;
#if __has_include("CDVWKProcessPoolFactory.h")
configuration.processPool = [[CDVWKProcessPoolFactory sharedFactory] sharedProcessPool];
Expand Down

0 comments on commit 79bfdb3

Please sign in to comment.