mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 04:37:40 +00:00
fix: secure chrome extension relay cdp
This commit is contained in:
@@ -400,7 +400,8 @@ async function findPageByTargetId(
|
||||
.replace(/\/+$/, "")
|
||||
.replace(/^ws:/, "http:")
|
||||
.replace(/\/cdp$/, "");
|
||||
const response = await fetch(`${baseUrl}/json/list`);
|
||||
const listUrl = `${baseUrl}/json/list`;
|
||||
const response = await fetch(listUrl, { headers: getHeadersWithAuth(listUrl) });
|
||||
if (response.ok) {
|
||||
const targets = (await response.json()) as Array<{
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user