Skip to content

Commit

Permalink
DuckPlayer Experiment Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
afterxleep committed Oct 9, 2024
1 parent 974fca1 commit f313f7e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion DuckDuckGo/DuckPlayer/DuckPlayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,12 @@ final class DuckPlayer: DuckPlayerProtocol {
}

public func getUserValues(params: Any, message: WKScriptMessage) -> Encodable? {
encodeUserValues()
let duckPlayerExperiment = DuckPlayerLaunchExperiment()
if duckPlayerExperiment.isEnrolled && duckPlayerExperiment.isExperimentCohort {
return encodeUserValues()
}
return nil

}

@MainActor
Expand Down

0 comments on commit f313f7e

Please sign in to comment.