Skip to content

Commit

Permalink
fix pdf-js worker path
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdaaz committed Oct 29, 2021
1 parent ab207f6 commit 85f073a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/shortcodes/embed-pdf.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
window.onload = function() {
// If absolute URL from the remote server is provided, configure the CORS
// header on that server.
var url = "{{.Site.BaseURL}}" + '{{ .Get "url" }}';
var url = "https://florencekelley.northwestern.edu" + '{{ .Get "url" }}';

var hidePaginator = "{{ .Get "hidePaginator" }}" === "true";
var hideLoader = "{{ .Get "hideLoader" }}" === "true";
Expand All @@ -72,7 +72,7 @@
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 = "https://florencekelley.northwestern.edu" + '/js/pdf-js/build/pdf.worker.js';

// Change the Scale value for lower or higher resolution.
var pdfDoc = null,
Expand Down

0 comments on commit 85f073a

Please sign in to comment.