Skip to content

Commit ba16de2

Browse files
committed
Fix readme
1 parent 88cfab4 commit ba16de2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Set `worker-src` only if you want to serve the worker from a custom location (fo
114114
```html
115115
<pdfjs-viewer-element
116116
src="/file.pdf"
117-
worker-src="https://cdn.jsdelivr.net/npm/pdfjs-dist@v5.5.207/build/pdf.worker.min.mjs">
117+
worker-src="https://cdn.jsdelivr.net/npm/pdfjs-dist@5.5.207/build/pdf.worker.min.mjs">
118118
</pdfjs-viewer-element>
119119
```
120120

@@ -249,7 +249,7 @@ You can also react to source changes dynamically:
249249

250250
```javascript
251251
const viewerElement = document.querySelector('pdfjs-viewer-element')
252-
viewer.setAttribute('src', '/another-file.pdf')
252+
viewerElement.setAttribute('src', '/another-file.pdf')
253253
```
254254

255255
## Accessibility

0 commit comments

Comments
 (0)