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 {
5858 const locale = this . getAttribute ( 'locale' ) || DEFAULTS . locale
5959 const textLayer = this . getAttribute ( 'text-layer' ) || DEFAULTS . textLayer
6060
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 : '' } `
6262 if ( updatedSrc !== this . iframe . getAttribute ( 'src' ) ) return updatedSrc
6363 return ''
6464 }
@@ -94,7 +94,6 @@ export interface PdfjsViewerElementIframeWindow extends Window {
9494 PDFViewerApplicationOptions : {
9595 set : ( name : string , value : string | boolean ) => void
9696 }
97- PDFViewerApplication : any
9897}
9998
10099export interface PdfjsViewerElementIframe extends HTMLIFrameElement {
You can’t perform that action at this time.
0 commit comments