Skip to content

Commit

Permalink
Add CrashCollectionPlatform.macOSAppStore
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoy committed Apr 11, 2024
1 parent 3629ce1 commit 592068a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/Crashes/CrashCollection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@ import Foundation
import MetricKit

public enum CrashCollectionPlatform {
case iOS, macOS
case iOS, macOS, macOSAppStore

var userAgent: String {
switch self {
case .iOS:
return "ddg_ios"
case .macOS:
return "ddg_mac"
case .macOSAppStore:
return "ddg_mac_appstore"
}
}
}
Expand Down

0 comments on commit 592068a

Please sign in to comment.