From 4b22a48420f9a7cb45b18a7311047412b059b423 Mon Sep 17 00:00:00 2001 From: Ian Ramzy Date: Sun, 5 Apr 2020 13:39:11 -0400 Subject: [PATCH] refresh on new audio device detected --- public/js/chat.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/js/chat.js b/public/js/chat.js index 6454df6..d060929 100644 --- a/public/js/chat.js +++ b/public/js/chat.js @@ -881,6 +881,8 @@ function startUp() { captionText.text("Waiting for other user to join...").fadeIn(); rePositionCaptions(); + + navigator.mediaDevices.ondevicechange = () => window.location.reload(); } startUp();