pdf.worker.js url fix
This commit is contained in:
parent
a0979de1f5
commit
2d6d9d9d17
@ -68,7 +68,7 @@ var selectedPageNum = parseInt("{{ .Get "renderPageNum" }}") || 1;
|
||||
var pdfjsLib = window['pdfjs-dist/build/pdf'];
|
||||
|
||||
// The workerSrc property shall be specified.
|
||||
pdfjsLib.GlobalWorkerOptions.workerSrc = "{{.Site.BaseURL}}" + '/js/pdf-js/build/pdf.worker.js';
|
||||
pdfjsLib.GlobalWorkerOptions.workerSrc = "{{.Site.BaseURL}}" + '/js/pdf.worker.js';
|
||||
|
||||
// Change the Scale value for lower or higher resolution.
|
||||
var pdfDoc = null,
|
||||
|
Loading…
Reference in New Issue
Block a user