fix: scramitize checks, re enable captureErrors

This commit is contained in:
Percs 2024-12-17 15:13:19 -06:00
parent 60f57d50f2
commit 9bf911bb0c
2 changed files with 3 additions and 3 deletions

View file

@ -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;
}

View file

@ -32,7 +32,7 @@ export class ScramjetController {
naiiveRewriter: false,
strictRewrites: true,
rewriterLogs: true,
captureErrors: false,
captureErrors: true,
cleanErrors: false,
scramitize: false,
sourcemaps: false,