Skip to content

Commit

Permalink
Fix function check.
Browse files Browse the repository at this point in the history
  • Loading branch information
hksfang committed Sep 20, 2023
1 parent af1234f commit 447e36b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/next-web/src/app/conversation/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default function Conversation() {

useEffect(() => {
// The chrome on android seems to have problems selecting devices.
if (audioPlayerRef.current.hasOwnProperty('setSinkId')) {
if (typeof audioPlayerRef.current.setSinkId === 'function') {
audioPlayerRef.current.setSinkId(selectedSpeaker.values().next().value);
}
}, [selectedSpeaker]);
Expand Down

0 comments on commit 447e36b

Please sign in to comment.