Skip to content

Commit

Permalink
Experiment (placeholders)
Browse files Browse the repository at this point in the history
  • Loading branch information
fnhipster committed Nov 11, 2024
1 parent 616dd47 commit 58fd06c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/initializers/cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ import { initializeDropin } from './index.js';
import { fetchPlaceholders } from '../aem.js';

await initializeDropin(async () => {
const labels = await fetchPlaceholders();
// Experiment (Challenger 1)
const isVariantPlaceholder = document.body.classList.contains('variant-challenger-1');

const labels = await fetchPlaceholders(isVariantPlaceholder ? '/drafts/marketer' : '');

const langDefinitions = {
default: {
Expand Down

0 comments on commit 58fd06c

Please sign in to comment.