Skip to content

Commit 448625e

Browse files
authored
Merge pull request #28 from privy-open-source/release/0.1.11.1
Release/0.1.11.1
2 parents 8e6f9f8 + 69613f7 commit 448625e

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@privyid/pdf-ajaib",
3-
"version": "0.1.11",
3+
"version": "0.1.11.1",
44
"private": false,
55
"license": "MIT",
66
"repository": {

src/components/pdf-viewers/PdfViewer.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<script lang="ts">
2+
import { pAspectRatio } from '@/directives/aspect-ratio'
3+
import { syncRef, templateRef, useToggle, useToNumber, useVModel, watchDebounced } from '@vueuse/core'
24
import type { PropType } from 'vue-demi'
35
import { computed, defineComponent, onMounted, provide, toRef, watch } from 'vue-demi'
4-
import { pAspectRatio } from '@/directives/aspect-ratio'
5-
import { templateRef, useToNumber, useVModel, watchDebounced, syncRef, useToggle } from '@vueuse/core'
6+
import PdfObjects from '../pdf-object/PdfObjects.vue'
67
import type { LayoutVariant } from './main'
78
import { PDF_VIEWER_CONTEXT } from './main'
8-
import { useSticky } from './utils/use-sticky'
9-
import PdfNavigation from './PdfNavigation.vue'
10-
import PdfLoading from './PdfLoading.vue'
119
import PdfError from './PdfError.vue'
10+
import PdfLoading from './PdfLoading.vue'
11+
import PdfNavigation from './PdfNavigation.vue'
1212
import { useIdle } from './utils/use-idle'
13-
import PdfObjects from '../pdf-object/PdfObjects.vue'
13+
import { useSticky } from './utils/use-sticky'
1414
import { useViewer } from './utils/use-viewer'
1515
1616
export default defineComponent({
@@ -100,9 +100,9 @@ export default defineComponent({
100100
101101
watchDebounced(
102102
() => [props.src, props.password],
103-
([src, password, workerSrc]) => {
103+
([src, password]) => {
104104
if (src) {
105-
openDoc(src, password, workerSrc)
105+
openDoc(src, password, props.workerSrc)
106106
}
107107
},
108108
{ debounce: 500 }

0 commit comments

Comments
 (0)