From 94bd7c28a7c9431d2f1cac6f1dd3080694f4d176 Mon Sep 17 00:00:00 2001 From: Cynthia Date: Mon, 5 Dec 2022 20:09:13 -0700 Subject: [PATCH] . --- src/modules/fedimbed.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index 627c269..266dc62 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -29,7 +29,7 @@ const PLATFORM_COLORS = { const domainCache = new Map(); async function resolvePlatform(url) { - let urlObj = new URL(url); + const urlObj = new URL(url); if (domainCache.has(urlObj.hostname)) return domainCache.get(urlObj.hostname); const probe = await fetch(urlObj.origin + "/.well-known/nodeinfo", { @@ -60,7 +60,7 @@ async function resolvePlatform(url) { } async function processUrl(msg, url) { - const urlObj = new URL(url); + let urlObj = new URL(url); const platform = await resolvePlatform(url); const color = PLATFORM_COLORS[platform]; const platformName = platform