Skip to content
This repository has been archived by the owner on May 1, 2021. It is now read-only.

Commit

Permalink
Assets paths should be strings, otherwise JS fails
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasztackowiak committed Feb 1, 2013
1 parent e16bbb9 commit 8d01b38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vendor/assets/javascripts/audiojs.js.erb
Expand Up @@ -34,8 +34,8 @@
autoplay: false,
loop: false,
preload: true,
imageLocation: <%= asset_path 'audiojs-player-graphics.gif' %>,
swfLocation: <%= asset_path 'audiojs.swf' %>,
imageLocation: '<%= asset_path 'audiojs-player-graphics.gif' %>',
swfLocation: '<%= asset_path 'audiojs.swf' %>',
useFlash: (function() {
var a = document.createElement('audio');
return !(a.canPlayType && a.canPlayType('audio/mpeg;').replace(/no/, ''));
Expand Down

0 comments on commit 8d01b38

Please sign in to comment.