Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

fix: new pdf-js version

Smaug6739d700f9e4c83e
diff --git a/frontend/app/components/PDFViewer.vue b/frontend/app/components/PDFViewer.vue
index c1df7efb..709c5fcf 100644
--- a/frontend/app/components/PDFViewer.vue
+++ b/frontend/app/components/PDFViewer.vue
@@ -192,7 +192,7 @@ const loadPdf = async () => {
observer = null;
}
if (pdf) {
- pdf.destroy();
+ pdf.loadingTask.destroy();
pdf = null;
}
@@ -258,7 +258,7 @@ watch(
onBeforeUnmount(() => {
observer?.disconnect();
- pdf?.destroy();
+ pdf?.loadingTask.destroy();
});
</script>