Skip to content

Commit

Permalink
bundle all (no cdn)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazerYoo committed Aug 17, 2024
1 parent ea5d4f2 commit a171903
Show file tree
Hide file tree
Showing 5 changed files with 1,142 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dist/bundle.js

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions dist/pdf.worker.min.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,6 @@
</footer>

<!-- load libraries + main script -->
<script src="./dist/bundle.js"></script>
<script src="dist/bundle.js"></script>
</body>
</html>
3 changes: 1 addition & 2 deletions src/file-parse.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import pdfjsDist from "pdfjs-dist";
import pdfjsWorker from "pdfjs-dist/build/pdf.worker.min.mjs";
import { clearTableOutput, clearStatsOutput } from "./looks.js";

// upload file handler
export function parseFile(event) {
return new Promise((resolve, reject) => {
// set the worker
pdfjsLib.GlobalWorkerOptions.workerSrc = pdfjsWorker;
pdfjsLib.GlobalWorkerOptions.workerSrc = "./pdf.worker.min.mjs";

// get file
const file = event.target.files[0];
Expand Down
Loading

0 comments on commit a171903

Please sign in to comment.