Fixed path to audio files. Closes #4704

This commit is contained in:
Blade Barringer
2015-02-17 13:53:32 -06:00
parent a5ce3f58b1
commit 44b9ac7215

View File

@@ -79,7 +79,7 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
$rootScope.playSound = function(id){
if (!user.preferences.sound || user.preferences.sound == 'off') return;
var theme = user.preferences.sound;
var file = 'audio/' + theme + '/' + id;
var file = 'common/audio/' + theme + '/' + id;
document.getElementById('oggSource').src = file + '.ogg';
document.getElementById('mp3Source').src = file + '.mp3';
document.getElementById('sound').load();