mirror of
https://github.com/mempool/mempool.git
synced 2026-08-13 12:33:11 +02:00
Only sync svgs from the mining pool logos repo
This commit is contained in:
parent
9398bf912f
commit
e31299c4e9
1 changed files with 1 additions and 1 deletions
|
|
@ -230,7 +230,7 @@ const downloadMiningPoolLogos = async () => {
|
||||||
const poolLogos = await fetchGitHubContents('/repos/mempool/mining-pool-logos/contents/', !!config.githubToken);
|
const poolLogos = await fetchGitHubContents('/repos/mempool/mining-pool-logos/contents/', !!config.githubToken);
|
||||||
|
|
||||||
let downloadedCount = 0;
|
let downloadedCount = 0;
|
||||||
const validFiles = poolLogos.filter(item => item.type === 'file' && item.download_url);
|
const validFiles = poolLogos.filter(item => item.type === 'file' && item.download_url && item.name.toLowerCase().endsWith('.svg'));
|
||||||
|
|
||||||
for (const poolLogo of validFiles) {
|
for (const poolLogo of validFiles) {
|
||||||
if (config.verbose) {
|
if (config.verbose) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue