Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
maxep committed Apr 9, 2024
1 parent d511735 commit 92dc3b0
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions DatadogWebViewTracking/Sources/WebViewTracking.swift
Original file line number Diff line number Diff line change
Expand Up @@ -143,19 +143,8 @@ public enum WebViewTracking {
let privacyLevel = sessionReplayConfiguration?.privacyLevel ?? .mask

// Share native capabilities with Browser SDK
let capabilities: String = {
var capabilities: [String] = []

// Add 'records' capability when session-replay
// is configured.
if sessionReplayConfiguration != nil {
capabilities.append("records")
}

return capabilities
.map { return "\"\($0)\"" }
.joined(separator: ",")
}()
// Share native capabilities with Browser SDK
let capabilities = sessionReplayConfiguration != nil ? "\"records\"" : ""

let js = """
\(Self.jsCodePrefix)
Expand Down

0 comments on commit 92dc3b0

Please sign in to comment.