From f9df56c43ff3a2cd0a0c69fd8a3663eb98acc9aa Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Wed, 29 Apr 2026 17:27:12 +0300 Subject: [PATCH] Apply suggestion from @Copilot We check for the file's existence, and if it does, we set AUDIO_MOTION_ENABLED = true. Okay, let's do an additional check in case the import fails for some reason. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- web/skins/classic/js/audioMotionAnalyzer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/skins/classic/js/audioMotionAnalyzer.js b/web/skins/classic/js/audioMotionAnalyzer.js index 9546b4594..570067a9b 100644 --- a/web/skins/classic/js/audioMotionAnalyzer.js +++ b/web/skins/classic/js/audioMotionAnalyzer.js @@ -22,6 +22,9 @@ if (checkAudioMotionEnabled()) { if (currentView == 'watch' || currentView == 'montage' || currentView == 'event') { customElements.define('audio-motion', _AudioMotionAnalyzer); } + }).catch(error => { + console.error('Failed to load audioMotion-analyzer module:', error); + window.CURRENT_AUDIO_MOTION_ANALYZER_VERSION = "LoadFailed"; }); } else { window.CURRENT_AUDIO_MOTION_ANALYZER_VERSION = "NotInstalled";