Skip to content

Commit

Permalink
Merge branch 'dm2' into ENG-339-llm-flow
Browse files Browse the repository at this point in the history
  • Loading branch information
tmbo committed Jun 19, 2023
2 parents 087508f + a9bad2f commit 3ab1539
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rasa/core/channels/chat.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,14 @@ <h2>Happy chatting!</h2>
</div>
</div>
</div>
<div id="rasa-chat-widget" data-websocket-url="" data-default-open=true></div>
<div id="rasa-chat-widget" data-websocket-url="" data-default-open=true data-height="500"></div>

<script>
let chatDiv = document.getElementById("rasa-chat-widget");
let websocketUrl = window.location.origin.replace("http", "ws")
let maxHeight = document.documentElement.scrollHeight - 150;
chatDiv.setAttribute("data-websocket-url", websocketUrl);
chatDiv.setAttribute("data-height", maxHeight)
</script>

<script>
Expand Down

0 comments on commit 3ab1539

Please sign in to comment.