From 5c637f242d3f5602fdbbc682d530955f0de366cb Mon Sep 17 00:00:00 2001 From: Gregory Ballantine Date: Mon, 28 Nov 2016 16:12:30 -0500 Subject: [PATCH] Fixed small error in music player track selection --- public/js/music.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/js/music.js b/public/js/music.js index b4c3d49..db77a60 100755 --- a/public/js/music.js +++ b/public/js/music.js @@ -43,6 +43,9 @@ function changeAudioSources(trackElem) { // loop through the audio player source elements playerSources.each(function(source) { + // jQuery-ize the element + source = $(source); + if (source.attr('type') == 'audio/ogg') { // OGG source file source.attr('src', audioFilePath + '.ogg');