Make every URL the console page uses page-relative, guarded by a source test

AI Assisted
This commit is contained in:
Seth committed 2026-12-05 00:10:44 -08:00
1 parent 4ced32be5c
commit 1d007737b1
47 files changed
+401 -202

No files matched your search

+2 -2
View File
@@ -69,8 +69,8 @@ export function setFavicon(state) {
const svgLink = document.querySelector('link[rel="icon"][type="image/svg+xml"]');
const pngLink = document.querySelector('link[rel="icon"][type="image/png"]');
if (state === "plain") {
if (svgLink) svgLink.href = "/favicon.svg";
if (pngLink) pngLink.href = "/favicon.png";
if (svgLink) svgLink.href = "favicon.svg";
if (pngLink) pngLink.href = "favicon.png";
return;
}
const url = "data:image/svg+xml," + encodeURIComponent(faviconSvg(state));