Skip to content

Commit

Permalink
Fixes for latest PDF viewer on Open Data Reports page
Browse files Browse the repository at this point in the history
  • Loading branch information
montoulieu committed Jul 27, 2021
1 parent 15c050a commit 600f8c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pdf-worker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
if (process.env.NODE_ENV === 'production') {
// use minified verion for production
module.exports = require('pdfjs-dist/build/pdf.worker.min.js');
} else {
module.exports = require('pdfjs-dist/build/pdf.worker.js');
}

0 comments on commit 600f8c6

Please sign in to comment.