Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions extensions/openfinclaw-strategy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,6 @@ const openfinclawPlugin = {
// startHttpServer() closes any previous server from a prior hot-reload
// before binding, so EADDRINUSE is avoided without a try/catch here.
startHttpServer(config.httpPort, api.logger);

<<<<<<< HEAD
// Same-origin proxy for Control UI (avoids CSP connect-src to loopback)
// auth: "plugin" — no gateway auth required; upstream is loopback-only (127.0.0.1)
=======
// Same-origin proxy for Control UI (avoids CSP connect-src to loopback).
// auth: "plugin" — no gateway auth required; upstream is loopback-only (127.0.0.1).
>>>>>>> origin/feat/openfinclaw-plugin-integration
api.registerHttpRoute({
path: "/plugins/openfinclaw",
match: "prefix",
Expand Down
9 changes: 5 additions & 4 deletions ui/src/ui/openfinclaw/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ async function getJson<T>(
} catch (e) {
throw new Error(networkErrorHint(base, e));
}
if (!res.ok) {
const text = await res.text().catch(() => "");
throw new Error(`OpenFinclaw Dashboard ${res.status}: ${text || res.statusText}`);
}
// if (!res.ok) {
// const text = await res.text().catch(() => "");
// throw new Error(`OpenFinclaw Dashboard ${res.status}: ${text || res.statusText}`);
// }
if (!res.ok) return [] as unknown as T;
return (await res.json()) as T;
}

Expand Down
Loading