Updated comments in mosaic

This commit is contained in:
dangered wolf 2022-08-15 17:42:44 -04:00
parent a4d903db8c
commit aa7d3bef64
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58

View file

@ -11,7 +11,7 @@ export const handleMosaic = async (
selectedDomain = domain; selectedDomain = domain;
} }
// Fallback if all Mosaic servers are down // Fallback if there are no Mosaic servers
if (selectedDomain === null) { if (selectedDomain === null) {
return null; return null;
} else { } else {
@ -20,7 +20,6 @@ export const handleMosaic = async (
media => media.url?.match(/(?<=\/media\/)[\w-]+(?=[.?])/g)?.[0] || '' media => media.url?.match(/(?<=\/media\/)[\w-]+(?=[.?])/g)?.[0] || ''
); );
// console.log('mosaicMedia', mosaicMedia); // console.log('mosaicMedia', mosaicMedia);
// TODO: use a better system for this, 0 gets png 1 gets webp, usually
const baseUrl = `https://${selectedDomain}/`; const baseUrl = `https://${selectedDomain}/`;
let path = ''; let path = '';