mirror of
https://gitdab.com/cadence/breezewiki.git
synced 2026-03-04 13:30:04 -05:00
only replace content so suggestions work
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user