mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-17 04:02:25 +00:00
fix: default inspector endpoint to localhost:2468
This commit is contained in:
parent
eee56bada5
commit
0ef3b998bb
1 changed files with 1 additions and 6 deletions
|
|
@ -43,12 +43,7 @@ const buildStubItem = (itemId: string, nativeItemId?: string | null): UniversalI
|
||||||
};
|
};
|
||||||
|
|
||||||
const getDefaultEndpoint = () => {
|
const getDefaultEndpoint = () => {
|
||||||
if (typeof window === "undefined") return "http://127.0.0.1:2468";
|
return "http://localhost:2468";
|
||||||
const { origin, protocol } = window.location;
|
|
||||||
if (!origin || origin === "null" || protocol === "file:") {
|
|
||||||
return "http://127.0.0.1:2468";
|
|
||||||
}
|
|
||||||
return origin;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const getInitialConnection = () => {
|
const getInitialConnection = () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue