Skip to content

Commit

Permalink
fix: scramitize checks, re enable captureErrors
Browse files Browse the repository at this point in the history
  • Loading branch information
Percslol committed Dec 17, 2024
1 parent 60f57d5 commit 9bf911b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/client/shared/wrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion src/controller/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class ScramjetController {
naiiveRewriter: false,
strictRewrites: true,
rewriterLogs: true,
captureErrors: false,
captureErrors: true,
cleanErrors: false,
scramitize: false,
sourcemaps: false,
Expand Down

0 comments on commit 9bf911b

Please sign in to comment.