1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Use new URL for currency API from cryptonator.

This commit is contained in:
Kevin Serrano 2017-06-05 16:23:56 -07:00
parent f5faeed2c9
commit 203a573f3f
No known key found for this signature in database
GPG Key ID: BF999DEFC7371BA1
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@
"storage",
"clipboardWrite",
"http://localhost:8545/",
"https://www.cryptonator.com/"
"https://api.cryptonator.com/"
],
"web_accessible_resources": [
"scripts/inpage.js"

View File

@ -45,7 +45,7 @@ class CurrencyController {
updateConversionRate () {
const currentCurrency = this.getCurrentCurrency()
return fetch(`https://www.cryptonator.com/api/ticker/eth-${currentCurrency}`)
return fetch(`https://api.cryptonator.com/api/ticker/eth-${currentCurrency}`)
.then(response => response.json())
.then((parsedResponse) => {
this.setConversionRate(Number(parsedResponse.ticker.price))