File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export class PdfjsViewerElement extends HTMLElement {
58
58
const locale = this . getAttribute ( 'locale' ) || DEFAULTS . locale
59
59
const textLayer = this . getAttribute ( 'text-layer' ) || DEFAULTS . textLayer
60
60
61
- const updatedSrc = `${ viewerPath } ${ DEFAULTS . viewerEntry } ?file=${ src } #page=${ page } &zoom=${ zoom } &pagemode=${ pagemode } &search=${ search } &phrase=${ phrase } &textLayer=${ textLayer } ${ locale ? '&locale=' + locale : '' } `
61
+ const updatedSrc = `${ viewerPath } ${ DEFAULTS . viewerEntry } ?file=${ encodeURIComponent ( src ) } #page=${ page } &zoom=${ zoom } &pagemode=${ pagemode } &search=${ search } &phrase=${ phrase } &textLayer=${ textLayer } ${ locale ? '&locale=' + locale : '' } `
62
62
if ( updatedSrc !== this . iframe . getAttribute ( 'src' ) ) return updatedSrc
63
63
return ''
64
64
}
@@ -94,7 +94,6 @@ export interface PdfjsViewerElementIframeWindow extends Window {
94
94
PDFViewerApplicationOptions : {
95
95
set : ( name : string , value : string | boolean ) => void
96
96
}
97
- PDFViewerApplication : any
98
97
}
99
98
100
99
export interface PdfjsViewerElementIframe extends HTMLIFrameElement {
You can’t perform that action at this time.
0 commit comments