Skip to content

Conversation

@RenanMsV
Copy link

I wanted it to show my main country currency (BRL) and also have it showing standard USD at the same time.

Made it by also requesting USD data in the url with

"&tsyms=" + base + ",USD&extraParams=crypto-price-widget";

if (base != "USD" && settings.get("user.alwaysShowUsd") == "yes") { // display also prices in USD
    coinRate = coinRate + (" <small>($") + coinRAW["USD"].PRICE.toFixed(4) + ")</small>"
}

It works good, even added an option for it in the settings.

Feel free to deny this pull request and do it differently.

Best regards,
RenanMsV

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant