mirror of
https://github.com/opencloud-eu/opencloud-compose.git
synced 2026-06-08 20:20:04 +08:00
18 lines
506 B
JavaScript
18 lines
506 B
JavaScript
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')
|
|
}); |