diff --git a/app/assets/javascripts/configureTrack.js b/app/assets/javascripts/configureTrack.js index 468ee6120..467f87c7e 100644 --- a/app/assets/javascripts/configureTrack.js +++ b/app/assets/javascripts/configureTrack.js @@ -767,11 +767,18 @@ var $option1 = $('#voice-chat-type > option[value="1"]'); - // remove Session Audio option from voice chat if none are available - if (chatUnassignedList.length === 0 && originalVoiceChat != VOICE_CHAT.SESSION) { + // remove Session Audio option from voice chat if none are available and not already assigned + if (unusedAudioOutputs.length === 0 && chatAssignedList.length === 0) { logger.debug("Removing Option 1 from Voice Chat dropdown."); $option1.remove(); } + // add it if it doesn't exist + else { + if ($option1.length === 0) { + logger.debug("Adding Option 1 back to Voice Chat dropdown."); + $('#voice-chat-type').prepend(''); + } + } } this.initialize = function() {