Skip to content

Commit

Permalink
Merge pull request #1376 from laws-africa/fix-pdf-errors
Browse files Browse the repository at this point in the history
raise pdf errors instead of showing them in the document view
  • Loading branch information
longhotsummer authored Jul 17, 2023
2 parents 11133d4 + 3db8b15 commit 8398a88
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 117 deletions.
141 changes: 29 additions & 112 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,14 @@
},
"homepage": "https://github.com/laws-africa/peach-jam#readme",
"devDependencies": {
"@lawsafrica/indigo-akn": "^5.1.0",
"@lawsafrica/indigo-akn": "^5.3.0",
"@lawsafrica/law-widgets": "^1.4.0",
"@types/lodash": "^4.14.180",
"@types/mark.js": "^8.11.7",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"@typescript-eslint/parser": "^5.14.0",
"@vue/compiler-sfc": "^3.2.31",
"css-loader": "^6.7.1",
"dom-anchor-text-position": "^5.0.0",
"dom-anchor-text-quote": "^4.0.2",
"eslint": "^7.3.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.21.2",
Expand Down
2 changes: 1 addition & 1 deletion peachjam/js/components/pdf-renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class PdfRenderer {
this.setupPreviewSyncing();
this.onPdfLoaded();
}).catch((e:ErrorEvent) => {
this.root.innerText = e.message;
throw e;
});
}

Expand Down
2 changes: 1 addition & 1 deletion peachjam/static/js/app-prod.js

Large diffs are not rendered by default.

0 comments on commit 8398a88

Please sign in to comment.