fix a issue

This commit is contained in:
Ashley 2023-11-29 16:06:31 +00:00
parent a1387cd434
commit aafffd6c0b

View file

@ -27,12 +27,14 @@ document.head.appendChild(script_tag);
/* rebranding */
function replaceRecursively(element, from, to) {
if (element.tagName !== 'STYLE') { // Ignore elements with the tag name "style"
if (element.childNodes.length) {
element.childNodes.forEach(child => replaceRecursively(child, from, to));
} else {
const cont = element.textContent;
if (cont) element.textContent = cont.replace(from, to);
}
} }
};
document.title = document.title.replace("PokeTube", "Poke")