diff --git a/static/jsonp.js b/static/jsonp.js index 3dde75b..4ed99de 100644 --- a/static/jsonp.js +++ b/static/jsonp.js @@ -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)) {