mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-12-05 08:15:41 -08:00
Make every URL the console page uses page-relative, guarded by a source test
AI Assisted
This commit is contained in:
1 parent
4ced32be5c
commit
1d007737b1
47 files changed
+401
-202
No files matched your search
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user