aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Serrano <kevin.serrano@consensys.net>2017-06-06 07:23:56 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2017-06-06 07:23:56 +0800
commit203a573f3fa8cf636c846a0a467318f6767d05fe (patch)
tree0a0a02db73ccf7f9d028427ef1590497a82cdada
parentf5faeed2c96f25333a83631833ccb8805fea3c47 (diff)
downloadtangerine-wallet-browser-203a573f3fa8cf636c846a0a467318f6767d05fe.tar
tangerine-wallet-browser-203a573f3fa8cf636c846a0a467318f6767d05fe.tar.gz
tangerine-wallet-browser-203a573f3fa8cf636c846a0a467318f6767d05fe.tar.bz2
tangerine-wallet-browser-203a573f3fa8cf636c846a0a467318f6767d05fe.tar.lz
tangerine-wallet-browser-203a573f3fa8cf636c846a0a467318f6767d05fe.tar.xz
tangerine-wallet-browser-203a573f3fa8cf636c846a0a467318f6767d05fe.tar.zst
tangerine-wallet-browser-203a573f3fa8cf636c846a0a467318f6767d05fe.zip
Use new URL for currency API from cryptonator.
-rw-r--r--app/manifest.json2
-rw-r--r--app/scripts/controllers/currency.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/manifest.json b/app/manifest.json
index 99a083f0f..01ee173a6 100644
--- a/app/manifest.json
+++ b/app/manifest.json
@@ -58,7 +58,7 @@
"storage",
"clipboardWrite",
"http://localhost:8545/",
- "https://www.cryptonator.com/"
+ "https://api.cryptonator.com/"
],
"web_accessible_resources": [
"scripts/inpage.js"
diff --git a/app/scripts/controllers/currency.js b/app/scripts/controllers/currency.js
index fb130ed76..1f20dc005 100644
--- a/app/scripts/controllers/currency.js
+++ b/app/scripts/controllers/currency.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))