Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
vivgoodrich committed Aug 17, 2023
1 parent b2e40bd commit 995cb5c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions libs/features/personalization/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,11 @@ function createPreviewPill(manifests) {
function addMarkerData(manifests) {
manifests.forEach((manifest) => {
manifest?.selectedVariant.useblockcode?.forEach((item) => {
document.querySelectorAll(`.${item.selector}`).forEach((el) => {
el.dataset.codeManifestId = manifest.manifest;
});
if (item.selector) {
document.querySelectorAll(`.${item.selector}`).forEach((el) => {
el.dataset.codeManifestId = manifest.manifest;
});
}
});
manifest?.selectedVariant.updatemetadata?.forEach((item) => {
if (item.selector === 'gnav-source') {
Expand Down

0 comments on commit 995cb5c

Please sign in to comment.