mirror of
https://github.com/langchain-ai/langgraphjs-api.git
synced 2026-07-19 13:25:54 -04:00
fix(api): remove http protocol
This commit is contained in:
@@ -45,14 +45,14 @@ api.post(
|
||||
(i) => path.extname(i.basename) === ".css",
|
||||
)) {
|
||||
result.push(
|
||||
`<link rel="stylesheet" href="http://${host}/ui/${agent}/${css.basename}" />`,
|
||||
`<link rel="stylesheet" href="//${host}/ui/${agent}/${css.basename}" />`,
|
||||
);
|
||||
}
|
||||
|
||||
const js = files.find((i) => path.extname(i.basename) === ".js");
|
||||
if (js) {
|
||||
result.push(
|
||||
`<script src="http://${host}/ui/${agent}/${js.basename}" onload='__LGUI_${agent}.render(${messageName}, "{{shadowRootId}}")'></script>`,
|
||||
`<script src="//${host}/ui/${agent}/${js.basename}" onload='__LGUI_${agent}.render(${messageName}, "{{shadowRootId}}")'></script>`,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user