diff --git a/Evergreen/Info.plist b/Evergreen/Info.plist index 71e3ca745..993922244 100644 --- a/Evergreen/Info.plist +++ b/Evergreen/Info.plist @@ -32,6 +32,8 @@ https://ranchero.com/downloads/evergreen-beta.xml UserAgent Evergreen + UserAgentParentheticalAddition + Macintosh; RSS Reader; ranchero.com/evergreen/ NSAppTransportSecurity NSAllowsArbitraryLoads diff --git a/Frameworks/RSWeb/RSWeb/UserAgent.swift b/Frameworks/RSWeb/RSWeb/UserAgent.swift index 3f659e1b1..425869cbf 100755 --- a/Frameworks/RSWeb/RSWeb/UserAgent.swift +++ b/Frameworks/RSWeb/RSWeb/UserAgent.swift @@ -19,6 +19,10 @@ public struct UserAgent { return nil } + if let userAgentParentheticalAddition = Bundle.main.object(forInfoDictionaryKey: "UserAgentParentheticalAddition") { + return "\(userAgentName)/\(version) (\(userAgentParentheticalAddition))" + } + #if os(macOS) let osString = "Macintosh" #elseif os(iOS)