From ce3035289abb609da04a79c7249e4219d158e7bd Mon Sep 17 00:00:00 2001 From: JJRcop Date: Fri, 10 Nov 2017 13:14:20 -0500 Subject: [PATCH] Adds default volume to tgchat javascript as well --- code/modules/goonchat/browserassets/js/browserOutput.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/goonchat/browserassets/js/browserOutput.js b/code/modules/goonchat/browserassets/js/browserOutput.js index f027b523aa8..647e4219819 100644 --- a/code/modules/goonchat/browserassets/js/browserOutput.js +++ b/code/modules/goonchat/browserassets/js/browserOutput.js @@ -65,6 +65,8 @@ var opts = { 'volumeUpdateDelay': 5000, //Time from when the volume updates to data being sent to the server 'volumeUpdating': false, //True if volume update function set to fire 'updatedVolume': 0, //The volume level that is sent to the server + + 'defaultMusicVolume': 25, }; @@ -604,6 +606,8 @@ $(function() { opts.updatedVolume = newVolume; sendVolumeUpdate(); internalOutput('Loaded music volume of: '+savedConfig.smusicVolume+'', 'internal'); + } else { + $('#adminMusic').prop('volume', opts.defaultMusicVolume); } (function() {