We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a59b6fe commit 63137cdCopy full SHA for 63137cd
Sources/Segment/Plugins/Platforms/Vendors/AppleUtils.swift
@@ -249,11 +249,8 @@ internal class MacOSVendorSystem: VendorSystem {
249
// It has to be fetched on the main thread, so we've spun it off
250
// async and cache it when it comes back.
251
if Self.asyncUserAgent == nil {
252
- // it's failing tests because it never comes back; they get stuck.
253
- if isUnitTesting == false {
254
- DispatchQueue.main.async {
255
- Self.asyncUserAgent = WKWebView().value(forKey: "userAgent") as? String
256
- }
+ DispatchQueue.main.async {
+ Self.asyncUserAgent = WKWebView().value(forKey: "userAgent") as? String
257
}
258
259
return Self.asyncUserAgent
0 commit comments