Ping api.{host}/favicon.ico instead of {host}/favicon.ico

This commit is contained in:
2026-08-24 19:36:46 +00:00
parent a003054781
commit 602329db27
+1 -1
View File
@@ -382,7 +382,7 @@ var si = 0,
img.onerror = function() { img.onerror = function() {
if (!timedOut) { clearTimeout(timer); resolve({ host: host, time: performance.now() - start }); } if (!timedOut) { clearTimeout(timer); resolve({ host: host, time: performance.now() - start }); }
}; };
img.src = 'https://' + host + '/favicon.ico?_=' + Date.now() + '_' + Math.random().toString(36).slice(2,6); img.src = 'https://api.' + host + '/favicon.ico?_=' + Date.now() + '_' + Math.random().toString(36).slice(2,6);
}); });
} }