diff options
Diffstat (limited to 'viewer/src/components/LdPdfViewer.vue')
-rw-r--r-- | viewer/src/components/LdPdfViewer.vue | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/viewer/src/components/LdPdfViewer.vue b/viewer/src/components/LdPdfViewer.vue index 20055cc..b1f6c64 100644 --- a/viewer/src/components/LdPdfViewer.vue +++ b/viewer/src/components/LdPdfViewer.vue | |||
@@ -22,7 +22,7 @@ | |||
22 | <!-- intermediate container necessary to eliminate the double scrollbar --> | 22 | <!-- intermediate container necessary to eliminate the double scrollbar --> |
23 | <div class="fill no-scroll"> | 23 | <div class="fill no-scroll"> |
24 | <!-- prefer native browser PDF viewer if available --> | 24 | <!-- prefer native browser PDF viewer if available --> |
25 | <object class="fill" :data="itemResourceUrl()" type="application/pdf"> | 25 | <object class="fill" :data="itemResourceUrl" type="application/pdf"> |
26 | <!-- TODO: fallback to PDF.js (https://github.com/pacien/ldgallery/issues/212) --> | 26 | <!-- TODO: fallback to PDF.js (https://github.com/pacien/ldgallery/issues/212) --> |
27 | <ld-download :item="pdfItem" /> | 27 | <ld-download :item="pdfItem" /> |
28 | </object> | 28 | </object> |
@@ -32,15 +32,15 @@ | |||
32 | <script lang="ts"> | 32 | <script lang="ts"> |
33 | import { Component, Prop, Vue } from "vue-property-decorator"; | 33 | import { Component, Prop, Vue } from "vue-property-decorator"; |
34 | 34 | ||
35 | @Component export default class LdPdfViewer extends Vue { | 35 | @Component |
36 | export default class LdPdfViewer extends Vue { | ||
36 | @Prop({ required: true }) readonly pdfItem!: Gallery.PDF; | 37 | @Prop({ required: true }) readonly pdfItem!: Gallery.PDF; |
37 | 38 | ||
38 | itemResourceUrl(): string { | 39 | get itemResourceUrl(): string { |
39 | return this.$galleryStore.resourceRoot + this.pdfItem.properties.resource; | 40 | return this.$galleryStore.resourceRoot + this.pdfItem.properties.resource; |
40 | } | 41 | } |
41 | } | 42 | } |
42 | </script> | 43 | </script> |
43 | 44 | ||
44 | <style lang="scss" module> | 45 | <style lang="scss" module> |
45 | |||
46 | </style> | 46 | </style> |