Skip to content

Commit

Permalink
fixing iframe controller bug
Browse files Browse the repository at this point in the history
Replaced `iframe.current.contentWindow.document` with `iframe.current.contentDocument`
  • Loading branch information
robertschnuell authored Mar 6, 2024
1 parent 81416e6 commit 9752338
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/chat/[[...roomId]].js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export default function Chat() {
<TextButton
title={t('Call')}
onClick={() =>
iframe.current.contentWindow.document
iframe.current.contentDocument
.querySelector('header.mx_RoomHeader > div button:nth-child(1)')
.click()
}
Expand All @@ -250,7 +250,7 @@ export default function Chat() {
<TextButton
title={t('Threads')}
onClick={() =>
iframe.current.contentWindow.document
iframe.current.contentDocument
.querySelector('header.mx_RoomHeader > div button:nth-child(2)')
.click()
}
Expand Down

0 comments on commit 9752338

Please sign in to comment.