Skip to content

Commit

Permalink
Merge pull request #111 from tilsammans/patch-1
Browse files Browse the repository at this point in the history
Return empty string when no path to audio.js found
  • Loading branch information
Zetaphor committed Jan 28, 2016
2 parents 34877b8 + 6477ca7 commit 48c8684
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions audiojs/audio.js
Expand Up @@ -9,6 +9,8 @@
var path = scripts[i].getAttribute('src');
if(re.test(path)) return path.replace(re, '');
}
// when no script found, an empty string causes the least confusion.
return '';
})();

// ##The audiojs interface
Expand Down

0 comments on commit 48c8684

Please sign in to comment.