handling postContainer
This commit is contained in:
parent
9df3407191
commit
b0cfbbae82
|
|
@ -58,6 +58,7 @@ export default function singleConseil() {
|
|||
);
|
||||
|
||||
function buildAllBlocksToObserve() {
|
||||
const postsContainerBlocks = document.querySelectorAll('.post-content-container');
|
||||
const questionsContainerBlocks = document.querySelectorAll('.questions-container-block');
|
||||
const chapitresThematiques = document.querySelectorAll('.homegrade-blocks-chapitre-thematique');
|
||||
const vocabulaireSummaryBlock = document.querySelector('.homegrade-blocks-vocabulaire-summary');
|
||||
|
|
@ -73,6 +74,7 @@ export default function singleConseil() {
|
|||
if (partnersOtherServices) allBlocks.push(partnersOtherServices);
|
||||
if (questionsContainerBlocks.length > 0)
|
||||
allBlocks = [...allBlocks, ...questionsContainerBlocks];
|
||||
if (postsContainerBlocks.length > 0) allBlocks = [...allBlocks, ...postsContainerBlocks];
|
||||
if (chapitresThematiques.length > 0) allBlocks = [...allBlocks, ...chapitresThematiques];
|
||||
|
||||
return allBlocks;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user