browserclaw 0.3.2 → 0.3.3
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/README.md +19 -14
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -742,7 +742,7 @@ async function getPageForTargetId(opts) {
|
|
|
742
742
|
const found = await findPageByTargetId(browser, opts.targetId, opts.cdpUrl);
|
|
743
743
|
if (!found) {
|
|
744
744
|
if (pages.length === 1) return first;
|
|
745
|
-
throw new Error(
|
|
745
|
+
throw new Error("tab not found");
|
|
746
746
|
}
|
|
747
747
|
return found;
|
|
748
748
|
}
|