mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-06 02:38:11 +01:00
Update pricechart.js
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user