1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-16 20:14:38 -05:00

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")