Skip to content

Commit

Permalink
Fix getting global pdfjs variable
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamadNateqi committed Jun 14, 2024
1 parent f46f87f commit 84e0ac6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions assets/js/admin-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,9 +491,6 @@ jQuery( function( $ ) {
// (See also https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding.)
pdfData = window.atob( pdfData );

// Loaded via <script> tag, create shortcut to access PDF.js exports.
let pdfjsLib = window['pdfjs-dist/build/pdf'];

// The workerSrc property shall be specified.
pdfjsLib.GlobalWorkerOptions.workerSrc = worker;

Expand Down

0 comments on commit 84e0ac6

Please sign in to comment.