From f8888828a9b1c340e5dfc6bcbe0e4f15e3862df1 Mon Sep 17 00:00:00 2001 From: velzie Date: Fri, 11 Oct 2024 16:45:54 -0400 Subject: [PATCH] scramitizer for document --- src/client/shared/wrap.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/shared/wrap.ts b/src/client/shared/wrap.ts index f364a12..d2033b2 100644 --- a/src/client/shared/wrap.ts +++ b/src/client/shared/wrap.ts @@ -66,6 +66,9 @@ export default function (client: ScramjetClient, self: typeof globalThis) { if (typeof v === "string" && v.includes("scramjet")) { debugger; } + if (iswindow && v instanceof Document && v.defaultView.$scramjet) { + debugger; + } return v; };