Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added always show USD option #68

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

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