From 84def13073134349c25b8241c12546ef5eb8a658 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Sat, 12 Oct 2024 13:57:05 -0700 Subject: [PATCH] format fix --- src/rewrite/html.ts | 5 ++++- test/rewriteHTML.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/rewrite/html.ts b/src/rewrite/html.ts index ac63209..28212c9 100644 --- a/src/rewrite/html.ts +++ b/src/rewrite/html.ts @@ -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") { diff --git a/test/rewriteHTML.ts b/test/rewriteHTML.ts index c2e297b..7f377ba 100644 --- a/test/rewriteHTML.ts +++ b/test/rewriteHTML.ts @@ -572,7 +572,7 @@ test( "iframe rw", rewriteHtml, '', - '' + '', ); test(