Permalink
Browse files

support non jsonp waveform floats response

  • Loading branch information...
1 parent d7da4bd commit ae856da4986737ae8e145767443b6f2246e11214 @jwagener jwagener committed Jun 26, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 app.rb
View
6 app.rb
@@ -64,7 +64,11 @@ def render(text)
waveform
end
- "#{ params[:callback] }(#{ waveform.to_json });"
+ if params[:callback]
+ "#{ params[:callback] }(#{ waveform.to_json });"
+ else
+ waveform.to_json
+ end
end
def memcache_fetch(key)

0 comments on commit ae856da

Please sign in to comment.