Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Drashti Modasara committed Nov 23, 2023
1 parent b57218b commit 2160a97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion creativecloud/features/genfill/genfill-interactive.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ export default async function decorateGenfill(el) {

loadStyle('/creativecloud/features/genfill/genfill-interactive.css');
const interactiveContainer = el.querySelector('.interactive-container');
const [enticementMode, enticement, timer] = interactiveContainer.firstElementChild.querySelectorAll('p:not(:has(picture))');
const allP = interactiveContainer.querySelectorAll('.media:first-child p:not(:empty)');
const pMetadata = [...allP].filter((p) => !p.querySelector('picture'));
const [enticementMode, enticement, timer = null] = [...pMetadata];

enticementMode.classList.add('enticement-mode');
enticement.classList.add('enticement-detail');
Expand Down

0 comments on commit 2160a97

Please sign in to comment.