add logo url

This commit is contained in:
Alex Ackermann
2025-05-30 14:50:42 +02:00
parent e17a1a1469
commit 68e0e13c2f
4 changed files with 26 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
document.addEventListener("DOMContentLoaded", function () {
const setLogoUrl = (url) => {
const logoTextSelector = document.querySelector(".kc-logo-text");
if (!logoTextSelector) {
return
}
const link = document.createElement("a");
link.href = url;
const parent = logoTextSelector.parentNode;
parent.insertBefore(link, logoTextSelector);
link.appendChild(logoTextSelector);
}
setLogoUrl('https://opencloud.eu')
});