From aa7d3bef64786411498e383c83820f4cb7993ce3 Mon Sep 17 00:00:00 2001 From: dangered wolf <d@ngeredwolf.me> Date: Mon, 15 Aug 2022 17:42:44 -0400 Subject: [PATCH] Updated comments in mosaic --- src/mosaic.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mosaic.ts b/src/mosaic.ts index 79327a6..42c16a2 100644 --- a/src/mosaic.ts +++ b/src/mosaic.ts @@ -11,7 +11,7 @@ export const handleMosaic = async ( selectedDomain = domain; } - // Fallback if all Mosaic servers are down + // Fallback if there are no Mosaic servers if (selectedDomain === null) { return null; } else { @@ -20,7 +20,6 @@ export const handleMosaic = async ( media => media.url?.match(/(?<=\/media\/)[\w-]+(?=[.?])/g)?.[0] || '' ); // console.log('mosaicMedia', mosaicMedia); - // TODO: use a better system for this, 0 gets png 1 gets webp, usually const baseUrl = `https://${selectedDomain}/`; let path = '';