From 1762ea39504c5802d167eef6b3fed5cebbbe805b Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 7 Aug 2023 13:06:54 -0400 Subject: [PATCH] Generate new Response when no match in `trusted-replace-fetch-response` scriptlet Somehow, sending the original Response instance causes issues. --- assets/resources/scriptlets.js | 1 - 1 file changed, 1 deletion(-) diff --git a/assets/resources/scriptlets.js b/assets/resources/scriptlets.js index b82fa0e0b..3a6b12152 100644 --- a/assets/resources/scriptlets.js +++ b/assets/resources/scriptlets.js @@ -3424,7 +3424,6 @@ function trustedReplaceFetchResponse( `\n\treplacement: ${replacement}`, ); } - if ( textAfter === textBefore ) { return responseBefore; } const responseAfter = new Response(textAfter, { status: responseBefore.status, statusText: responseBefore.statusText,