From a8f907398601f68c5096ea9eafb2d9413f81f65a Mon Sep 17 00:00:00 2001 From: Percs <83934299+Percslol@users.noreply.github.com> Date: Thu, 21 Nov 2024 23:46:07 -0600 Subject: [PATCH] feat: add html frame support --- src/client/dom/element.ts | 1 + src/shared/rewriters/html.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/client/dom/element.ts b/src/client/dom/element.ts index 12a58dd..46b47cf 100644 --- a/src/client/dom/element.ts +++ b/src/client/dom/element.ts @@ -18,6 +18,7 @@ export default function (client: ScramjetClient, self: typeof window) { self.HTMLImageElement, self.HTMLMediaElement, self.HTMLIFrameElement, + self.HTMLFrameElement, self.HTMLEmbedElement, self.HTMLScriptElement, self.HTMLSourceElement, diff --git a/src/shared/rewriters/html.ts b/src/shared/rewriters/html.ts index f2e2f0c..c8ff137 100644 --- a/src/shared/rewriters/html.ts +++ b/src/shared/rewriters/html.ts @@ -122,6 +122,7 @@ export const htmlRules: { "img", "image", "iframe", + "frame", "source", "input", "track",