only replace content so suggestions work

This commit is contained in:
Cadence Ember 2025-11-05 00:04:19 +13:00
parent 02848acfbb
commit c4e2fb00ef

View file

@ -37,7 +37,8 @@ async function cont() {
xhr.addEventListener("load", () => {
console.log(xhr)
document.body = xhr.responseXML.body
const imported = document.importNode(xhr.responseXML.getElementById("content"), true)
document.getElementById("content").replaceWith(imported)
document.title = xhr.responseXML.title
for (const e of xhr.responseXML.head.children) {
if (["LINK"].includes(e.tagName)) {