1
0

🥅 Try/catch audio.play

This commit is contained in:
2022-01-05 19:14:35 +01:00
parent 2edb4481f8
commit 324f3faec2

View File

@@ -183,7 +183,11 @@ function russianRoulette({ userDisplayName, message }) {
}, 1250); }, 1250);
} }
try {
audio.play(); audio.play();
} catch(e) {
// user didn't interact with the document first
}
} }
}); });
} }