Add rootUrl to sound paths

master
Daniel Berteaud 11 years ago
parent fdc22b45ce
commit 0385a5b137
  1. 2
      public/js/vroom.js

@ -210,7 +210,7 @@ function initVroom(room) {
// Just play a sound
function playSound(sound){
var audio = new Audio('/snd/'+sound);
var audio = new Audio(rootUrl + 'snd/' + sound);
audio.play();
}

Loading…
Cancel
Save