Skip to content

Commit

Permalink
Fix popup chat button with URL parameters (#1294)
Browse files Browse the repository at this point in the history
  • Loading branch information
JosefSchoenberger authored Jan 8, 2024
1 parent d74a55a commit 25b3b04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/ts/components/chat-prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ export function chatPromptContext(streamId: number): AlpineComponent {

openPopOut() {
const height = window.innerHeight * 0.8;
const location = window.location;
window.open(
`${window.location.href}/chat/popup`,
`${location.origin}${location.pathname}/chat/popup${location.search}${location.hash}`,
"tumlive-popout",
`popup=yes,width=420,innerWidth=420,height=${height},innerHeight=${height}`,
);
Expand Down

0 comments on commit 25b3b04

Please sign in to comment.