Skip to content

Commit c3624b0

Browse files
authored
Merge pull request #80 from cloudadoption/issue-socialshare
Update delayed.js
2 parents e3da1b9 + b0f36a6 commit c3624b0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

scripts/delayed.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,7 @@ async function injectSocialShareBlock() {
2121
wrapper.append(block);
2222
section.append(wrapper);
2323

24-
const firstSection = main.querySelector(':scope > div.section');
25-
if (firstSection) {
26-
firstSection.insertAdjacentElement('afterend', section);
27-
} else {
28-
main.append(section);
29-
}
24+
main.append(section);
3025

3126
decorateBlock(block);
3227
await loadBlock(block);

0 commit comments

Comments
 (0)