added PDF opener

This commit is contained in:
2022-06-08 12:02:09 +02:00
parent c83094266b
commit db3a257ecd
2 changed files with 18 additions and 4 deletions

14
web/opener/PDF.svelte Normal file
View File

@@ -0,0 +1,14 @@
<script lang="ts">
export let contentType: string;
export let filename: string;
export let slug: string;
</script>
<iframe src="/s/{slug}.pdf" title="{filename}" frameborder="0"></iframe>
<style>
iframe{
min-width: 100%;
height: 90vh;
}
</style>