Skip to content

Commit 4b93424

Browse files
Update src/pdfjs-viewer-element.ts
Co-authored-by: codacy-production[bot] <61871480+codacy-production[bot]@users.noreply.github.com>
1 parent efd85e3 commit 4b93424

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pdfjs-viewer-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class PdfjsViewerElement extends HTMLElement {
4343

4444
setViewerOptions() {
4545
const locale = this.getAttribute("locale");
46-
if (locale) this.iframe.contentWindow?.PDFViewerApplicationOptions.set('locale', locale)
46+
if (locale)
4747
}
4848
}
4949

0 commit comments

Comments
 (0)