This commit is contained in:
Cynthia Foxwell 2022-12-05 20:09:13 -07:00
parent 86a8bd33a8
commit 94bd7c28a7
1 changed files with 2 additions and 2 deletions

View File

@ -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