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>