browserclaw 0.12.3 → 0.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2675,6 +2675,9 @@ async function getPageForTargetId(opts) {
|
|
|
2675
2675
|
);
|
|
2676
2676
|
}
|
|
2677
2677
|
if (isBlockedPageRef(opts.cdpUrl, found)) throw new BlockedBrowserTargetError();
|
|
2678
|
+
const foundTargetId = await pageTargetId(found).catch(() => null);
|
|
2679
|
+
if (foundTargetId !== null && foundTargetId !== "" && isBlockedTarget(opts.cdpUrl, foundTargetId))
|
|
2680
|
+
throw new BlockedBrowserTargetError();
|
|
2678
2681
|
return found;
|
|
2679
2682
|
}
|
|
2680
2683
|
async function resolvePageByTargetIdOrThrow(opts) {
|