re-implemented rendering of document

This commit is contained in:
2025-07-16 21:53:11 +02:00
parent 877edadd50
commit 7616aa9581
5 changed files with 11 additions and 19 deletions

View File

@@ -81,12 +81,7 @@
async function render(){
const url = `${location.protocol}//${location.host.replace('5173','8080')}/api/document/${doc.id}/pdf`;
const resp = fetch(url,{credentials:'include'});
if (resp.ok){
error = null;
} else {
error = await resp.text();
}
location.href = url;
}
onMount(loadDoc);