From ce9c93dc5a629feda067df96c3f2a484bdfd0235 Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Wed, 29 Apr 2026 16:01:10 +0300 Subject: [PATCH] Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- web/js/MonitorStream.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/js/MonitorStream.js b/web/js/MonitorStream.js index bf3a887cc..baed62744 100644 --- a/web/js/MonitorStream.js +++ b/web/js/MonitorStream.js @@ -416,7 +416,9 @@ function MonitorStream(monitorData) { (e) => { this.writeTextInfoBlock("Paused", {showImg: false}); manageEventListener.removeEventListener(this.handlerEventListener['volumechange']); - pauseAudioMotion(this.id); + if (typeof pauseAudioMotion === 'function') { + pauseAudioMotion(this.id); + } } ); };