fix: dynamic favicon injection + push main to GitHub (v1.4.25)

This commit is contained in:
Kantine Wrapper
2026-02-26 09:03:07 +01:00
parent 7ce82ce82e
commit 284f3d9a32
3 changed files with 11 additions and 1 deletions

View File

@@ -243,6 +243,13 @@ $CHANGELOG_HTML
EOF
cat >> "$DIST_DIR/install.html" << INSTALLEOF
// Dynamic favicon injection (overrides proxy defaults like htmlpreview.github.io)
document.querySelectorAll('link[rel*="icon"]').forEach(function(el) { el.remove(); });
var fi = document.createElement('link');
fi.rel = 'icon';
fi.type = 'image/svg+xml';
fi.href = '$FAVICON_URI';
document.head.appendChild(fi);
document.getElementById('bookmarklet-link').textContent = 'Kantine $VERSION';
</script>
</body>

View File

@@ -1,3 +1,6 @@
## v1.4.25
- 🐛 **Bugfix**: Favicon wird in `install.html` jetzt zusätzlich per JavaScript injiziert, um Proxy-Dienste wie htmlpreview.github.io zu überschreiben. Release-Script pusht nun auch `main` Branch zu GitHub.
## v1.4.24
- 🐛 **Bugfix**: Favicon-Encoding korrigiert `encodeURIComponent` verursachte doppeltes Encoding der Farbcodes (`%23``%2523`). Auf Base64 umgestellt, funktioniert nun auch unter Chrome/Windows.

View File

@@ -1 +1 @@
v1.4.24
v1.4.25