Skip to content

Commit

Permalink
fix rate
Browse files Browse the repository at this point in the history
  • Loading branch information
langerhans committed Feb 20, 2015
1 parent 714efdc commit dc5890a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ratebox.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ rateboxGetRate = function() {
//var yql_url = '//query.yahooapis.com/v1/public/yql?q=select%20*%20from%20html%20where%20url%3D"' + api_url + '"&format=json&callback=?';

$.getJSON(api_url, function (jsonp) {
var ticker = $.parseJSON(jsonp.data.prices[1].price);
var ticker = $.parseJSON(jsonp.data.prices[0].price);
if (ticker) {
$("#rate").html(parseFloat(ticker).toFixed(8) * 100000000);
} else {
Expand Down

0 comments on commit dc5890a

Please sign in to comment.