Skip to content

Commit

Permalink
Merge pull request pichillilorenzo#15 from brian-lin/TWECACAPP-709_as…
Browse files Browse the repository at this point in the history
…sign_applicationNameForUserAgent_to_WKWebViewConfiguration

TWECACAPP-709 assign applicationNameForUserAgent to WKWebViewConfiguration
  • Loading branch information
eJamesLin authored and GitHub Enterprise committed Jul 7, 2020
2 parents c1ab57e + 3b65ae8 commit 3ac5ee7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ios/Classes/InAppWebView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1077,6 +1077,12 @@ public class InAppWebView: WKWebView, UIScrollViewDelegate, WKUIDelegate, WKNavi
}
}
}

if #available(iOS 9.0, *) {
if let applicationNameForUserAgent = options?.applicationNameForUserAgent, !applicationNameForUserAgent.isEmpty {
configuration.applicationNameForUserAgent = applicationNameForUserAgent
}
}

return configuration
}
Expand Down

0 comments on commit 3ac5ee7

Please sign in to comment.