We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa7ae85 commit 494476fCopy full SHA for 494476f
lib/dom/process.ts
@@ -125,12 +125,14 @@ export async function getScrollableElementXpaths(
125
},
126
};
127
128
- Object.defineProperty(window, "__stagehand__", {
129
- value: backdoor,
130
- enumerable: false,
131
- writable: false,
132
- configurable: false,
133
- });
+ if (!("__stagehand__" in window)) {
+ Object.defineProperty(window, "__stagehand__", {
+ value: backdoor,
+ enumerable: false,
+ writable: false,
+ configurable: false,
134
+ });
135
+ }
136
})();
137
138
window.getScrollableElementXpaths = getScrollableElementXpaths;
0 commit comments