browserclaw 0.4.1 → 0.4.2
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 +1 -1
- 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
|
@@ -840,7 +840,7 @@ async function findPageByTargetId(browser, targetId, cdpUrl) {
|
|
|
840
840
|
}
|
|
841
841
|
if (cdpUrl) {
|
|
842
842
|
try {
|
|
843
|
-
const listUrl = `${cdpUrl
|
|
843
|
+
const listUrl = `${normalizeCdpHttpBaseForJsonEndpoints(cdpUrl)}/json/list`;
|
|
844
844
|
const headers = {};
|
|
845
845
|
if (cached?.authToken) headers["Authorization"] = `Bearer ${cached.authToken}`;
|
|
846
846
|
const response = await fetch(listUrl, { headers });
|