re-implemented rendering of document
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user