Skip to content

Commit

Permalink
Merge pull request #262 from bocoup/rewrite-iframe-sources
Browse files Browse the repository at this point in the history
Rewrite iframe source attributes in APG
  • Loading branch information
jugglinmike authored Oct 2, 2023
2 parents 7896afd + 9051b4f commit 6f52c7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/pre-build/library/rewriteElementPaths.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ const rewriteElementPaths = async (html, { onSourcePath }) => {
const linkTags = html.querySelectorAll("link[href]");
const scriptTags = html.querySelectorAll("script[src]");
const imgTags = html.querySelectorAll("img[src]");
const iframeTags = html.querySelectorAll("iframe[src]");

[...aTags, ...linkTags, ...scriptTags, ...imgTags].forEach((element) => {
[...aTags, ...linkTags, ...scriptTags, ...imgTags, ...iframeTags].forEach((element) => {
fixSpecLink(element);

const href = element.getAttribute("href");
Expand Down

0 comments on commit 6f52c7f

Please sign in to comment.