mirror of
https://github.com/basicswap/basicswap.git
synced 2025-05-04 11:52:18 +00:00
Update pricechart.js
This commit is contained in:
parent
8de365f9d3
commit
aee66712b8
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ const api = {
|
||||||
},
|
},
|
||||||
fetchCoinGeckoDataXHR: async () => {
|
fetchCoinGeckoDataXHR: async () => {
|
||||||
const cacheKey = 'coinGeckoOneLiner';
|
const cacheKey = 'coinGeckoOneLiner';
|
||||||
const minRequestInterval = 15000;
|
const minRequestInterval = 30000;
|
||||||
const currentTime = Date.now();
|
const currentTime = Date.now();
|
||||||
const lastRequestTime = window.lastGeckoRequest || 0;
|
const lastRequestTime = window.lastGeckoRequest || 0;
|
||||||
if (currentTime - lastRequestTime < minRequestInterval) {
|
if (currentTime - lastRequestTime < minRequestInterval) {
|
||||||
|
|
Loading…
Reference in a new issue