From 0778a73c554eaf3fb876804acec6d2fcb9879cc8 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Mon, 2 Sep 2013 19:50:32 -0400 Subject: fix minor bugs --- www/js/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'www') diff --git a/www/js/api.js b/www/js/api.js index ed5b387..fae899e 100644 --- a/www/js/api.js +++ b/www/js/api.js @@ -40,7 +40,7 @@ window.html5ks.api = { } html5ks.elements.audio[channel] = audio; - var src = "dump/" + channel === "music" ? html5ks.data.music[name] : html5ks.data.sfx[name]; + var src = "dump/" + (channel === "music" ? html5ks.data.music[name] : html5ks.data.sfx[name]); if (Modernizr.audio.opus) { audio.src = src + ".opus"; } else if (Modernizr.audio.ogg) { -- cgit v1.2.3-70-g09d2