Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-shadow-piercer-debug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@browserbasehq/stagehand": patch
---

Respect `opts.debug` in `installV3ShadowPiercer` instead of hardcoding `DEBUG = true`
3 changes: 1 addition & 2 deletions packages/core/lib/v3/dom/piercer.runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ declare global {
}

export function installV3ShadowPiercer(opts: V3ShadowPatchOptions = {}): void {
// hardcoded debug (remove later if desired)
const DEBUG = true;
const DEBUG = opts.debug ?? false;

type PatchedFn = Element["attachShadow"] & {
__v3Patched?: boolean;
Expand Down
Loading