Skip to content

Commit

Permalink
Merge pull request #1312 from hlxsites/fix-script-section
Browse files Browse the repository at this point in the history
Updated script converter
  • Loading branch information
rgravitvl authored Nov 26, 2024
2 parents fd4bbbc + 86a92da commit 2205655
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/importer/transformers/embedScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ const embedScript = (main, document) => {
const scriptEls = main.querySelectorAll('div.script');
if (scriptEls.length > 0) {
scriptEls.forEach((scriptEl) => {
if (scriptEl.querySelector('div#add-section')?.id === 'add-section') {
scriptEl.innerHTML = '';
scriptEl.append(document.createElement('hr'));
}
const iFrame = scriptEl.querySelector('iframe');
if (iFrame) {
const anc = document.createElement('a');
Expand Down

0 comments on commit 2205655

Please sign in to comment.