Update InAppWebView.swift

removed setting `applicationNameForUserAgent` property from `prepare` method.
This commit is contained in:
Lorenzo Pichilli 2022-04-15 20:35:23 +02:00 committed by GitHub
parent d8d84053bc
commit af460d6746
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -405,9 +405,6 @@ public class InAppWebView: WKWebView, UIScrollViewDelegate, WKUIDelegate, WKNavi
if #available(iOS 9.0, *) {
configuration.allowsAirPlayForMediaPlayback = options.allowsAirPlayForMediaPlayback
configuration.allowsPictureInPictureMediaPlayback = options.allowsPictureInPictureMediaPlayback
if !options.applicationNameForUserAgent.isEmpty {
configuration.applicationNameForUserAgent = options.applicationNameForUserAgent
}
}
configuration.preferences.javaScriptCanOpenWindowsAutomatically = options.javaScriptCanOpenWindowsAutomatically