fix: Update host_url in getWidgetCode function (#4894)
Refactor: Update host_url in getWidgetCode function
This commit is contained in:
parent
b9f312cfb8
commit
49079098b4
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ export default function getWidgetCode({
|
||||||
<langflow-chat
|
<langflow-chat
|
||||||
window_title="${flowName}"
|
window_title="${flowName}"
|
||||||
flow_id="${flowId}"
|
flow_id="${flowId}"
|
||||||
host_url="http://localhost:7860"${
|
host_url="${window.location.protocol}//${window.location.host}"${
|
||||||
!isAuth
|
!isAuth
|
||||||
? `
|
? `
|
||||||
api_key="..."`
|
api_key="..."`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue