forked from cadence/breezewiki
only replace content so suggestions work
This commit is contained in:
parent
02848acfbb
commit
c4e2fb00ef
1 changed files with 2 additions and 1 deletions
|
|
@ -37,7 +37,8 @@ async function cont() {
|
||||||
|
|
||||||
xhr.addEventListener("load", () => {
|
xhr.addEventListener("load", () => {
|
||||||
console.log(xhr)
|
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
|
document.title = xhr.responseXML.title
|
||||||
for (const e of xhr.responseXML.head.children) {
|
for (const e of xhr.responseXML.head.children) {
|
||||||
if (["LINK"].includes(e.tagName)) {
|
if (["LINK"].includes(e.tagName)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue