blob: 52468f920bd5036c3e0fdc6bef3efc25588e8b66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import * as appStoreExperiments from "./app-store-experiments";
import { ExperimentAreaId } from "./experiment-area-id";
/**
* Check whether the condensed treatment should be applied to the Today ad.
* @param objectGraph The object graph.
* @returns A boolean indicating if the treatment should be applied.
*/
export function shouldTodayAdBeCondensed(objectGraph) {
if (!objectGraph.client.isPhone) {
return false;
}
const treatmentId = appStoreExperiments.currentTreatmentIdForArea(objectGraph, ExperimentAreaId.CondensedTodayAds);
return treatmentId === "5pdfhju01" /* TodayAdCondensedDisplayExperimentTypes.Condensed */;
}
//# sourceMappingURL=today-ad-experiments.js.map
|