Skip to content

Commit

Permalink
format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ikreymer committed Oct 12, 2024
1 parent be072c2 commit 84def13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/rewrite/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,10 @@ class HTMLRewriter {
) {
attr.value = REPLAY_TOP_FRAME_NAME;
}
} else if (name === "src" && (tagName === "iframe" || tagName === "frame")) {
} else if (
name === "src" &&
(tagName === "iframe" || tagName === "frame")
) {
const mod = attrRules[name];
attr.value = this.rewriteUrl(rewriter, attr.value, false, mod);
} else if (name === "href" || name === "src") {
Expand Down
2 changes: 1 addition & 1 deletion test/rewriteHTML.ts
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ test(
"iframe rw",
rewriteHtml,
'<iframe src="https://example.com/iframe.html"></iframe>',
'<iframe src="http://localhost:8080/prefix/20201226101010if_/https://example.com/iframe.html"></iframe>'
'<iframe src="http://localhost:8080/prefix/20201226101010if_/https://example.com/iframe.html"></iframe>',
);

test(
Expand Down

0 comments on commit 84def13

Please sign in to comment.