From 0385a5b137fc879358a30e183a4a3c106e3c3dba Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 19 May 2014 11:02:42 +0200 Subject: [PATCH] Add rootUrl to sound paths --- public/js/vroom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/vroom.js b/public/js/vroom.js index 57d6c29..41096fb 100644 --- a/public/js/vroom.js +++ b/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(); }