From 9bf911bb0caa6b63a2f9dc0490f5c34fc4f7329a Mon Sep 17 00:00:00 2001 From: Percs <83934299+Percslol@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:13:19 -0600 Subject: [PATCH] fix: scramitize checks, re enable captureErrors --- src/client/shared/wrap.ts | 4 ++-- src/controller/index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/shared/wrap.ts b/src/client/shared/wrap.ts index 1e4d3e8..3581f12 100644 --- a/src/client/shared/wrap.ts +++ b/src/client/shared/wrap.ts @@ -74,11 +74,11 @@ export default function (client: ScramjetClient, self: typeof globalThis) { debugger; } - if (v === self && v.$scramjet) { + if (v === self && v?.$scramjet) { debugger; } - if (iswindow && v instanceof Document && v.defaultView.$scramjet) { + if (iswindow && v instanceof Document && v.defaultView?.$scramjet) { debugger; } diff --git a/src/controller/index.ts b/src/controller/index.ts index d8fc693..e8b9fa7 100644 --- a/src/controller/index.ts +++ b/src/controller/index.ts @@ -32,7 +32,7 @@ export class ScramjetController { naiiveRewriter: false, strictRewrites: true, rewriterLogs: true, - captureErrors: false, + captureErrors: true, cleanErrors: false, scramitize: false, sourcemaps: false,