File tree 1 file changed +3
-3
lines changed
Vienna/Sources/Main window
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -85,10 +85,10 @@ class CustomWKWebView: WKWebView {
85
85
contentController. addUserScript ( linkHoverScript)
86
86
87
87
// configuration
88
- // for useragent, we mimic the installed version of Safari and add our own identifier
88
+ // for useragent, we mimic the installed version of Safari, with some parts hardcoded cf.
89
+ // https://commits.webkit.org/210255@main#diff-6b380f6aad66e056453550b8479034403c064a5a763d8bf0d0b202be06fa2691R40
89
90
let shortSafariVersion = Bundle ( path: " /Applications/Safari.app " ) ? . infoDictionary ? [ " CFBundleShortVersionString " ] as? String
90
- let viennaVersion = ( NSApp as? ViennaApp ) ? . applicationVersion
91
- configuration. applicationNameForUserAgent = " Version/ \( shortSafariVersion ?? " 9.1 " ) Safari/605 Vienna/ \( viennaVersion ?? " 3.5+ " ) "
91
+ configuration. applicationNameForUserAgent = " Version/ \( shortSafariVersion ?? " 9.1 " ) Safari/605.1.15 "
92
92
configuration. allowsAirPlayForMediaPlayback = true
93
93
configuration. mediaTypesRequiringUserActionForPlayback = WKAudiovisualMediaTypes . all
94
94
You can’t perform that action at this time.
0 commit comments