Skip to content

Commit

Permalink
update exchange api
Browse files Browse the repository at this point in the history
  • Loading branch information
anh-chu committed Sep 25, 2023
1 parent d7750e0 commit 1a93e09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/currency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ async function getExchangeRates() {
if ((await chrome.storage.local.get("exchangeRate"))?.exchangeRateDate) {
return (await chrome.storage.local.get("exchangeRate"))?.rates;
}
const url = `http://data.fixer.io/api/latest?symbols=USD,EUR,VND&access_key=${accessKey}`;
const url = `https://api.apilayer.com/fixer/latest?symbols=USD,EUR,VND&access_key=${accessKey}`;
const r = await fetch(url);
const j = await r.json();
chrome.storage.local.set({
Expand Down

0 comments on commit 1a93e09

Please sign in to comment.