Adds default volume to tgchat javascript as well

This commit is contained in:
JJRcop
2017-11-10 13:14:20 -05:00
committed by GitHub
parent 8b5ec1f6da
commit ce3035289a
@@ -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('<span class="internal boldnshit">Loaded music volume of: '+savedConfig.smusicVolume+'</span>', 'internal');
} else {
$('#adminMusic').prop('volume', opts.defaultMusicVolume);
}
(function() {