Skip to content
Snippets Groups Projects
Unverified Commit 76dffcd0 authored by Ahmad Farhat's avatar Ahmad Farhat Committed by GitHub
Browse files

Added clear inteval when action cable works (#5454)

parent b495066b
Branches
Tags
No related merge requests found
...@@ -105,6 +105,8 @@ export default function JoinCard() { ...@@ -105,6 +105,8 @@ export default function JoinCard() {
// Play a sound and displays a toast when the meeting starts if the user was in a waiting queue // Play a sound and displays a toast when the meeting starts if the user was in a waiting queue
const notifyMeetingStarted = () => { const notifyMeetingStarted = () => {
clearInterval(joinInterval);
const audio = new Audio(`${process.env.RELATIVE_URL_ROOT}/audios/notify.mp3`); const audio = new Audio(`${process.env.RELATIVE_URL_ROOT}/audios/notify.mp3`);
audio.play() audio.play()
.catch((err) => { .catch((err) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment