diff --git a/assets/script.js b/assets/script.js index f06dbc7..71318ae 100644 --- a/assets/script.js +++ b/assets/script.js @@ -181,7 +181,7 @@ async function togglearticlecreate(){ } async function renderarticles(){ - let template = document.querySelector('template[data-template-name="article"]').content.toString(); + let template = document.querySelector('template[data-template-name="article"]').innerHTML; let articles = await doAction( "/newsarticle", {