Use new URL for currency API from cryptonator.

feature/default_network_editable
Kevin Serrano 8 years ago
parent f5faeed2c9
commit 203a573f3f
No known key found for this signature in database
GPG Key ID: BF999DEFC7371BA1
  1. 2
      app/manifest.json
  2. 2
      app/scripts/controllers/currency.js

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

@ -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))

Loading…
Cancel
Save