Skip to content

Commit

Permalink
make extension use our own js viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
cipri-tom committed Dec 29, 2022
1 parent 1ffca94 commit 98c4fae
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 30 deletions.
2 changes: 1 addition & 1 deletion firefox/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var app = {};
app.name = "[arXiv-utils]";
// For our PDF container.
app.pdfviewer = "pdfviewer.html";
app.pdfviewerTarget = "pdfviewer.html?target=";
app.pdfviewerTarget = "pdf.js/build/generic/web/viewer.html?file=";
// The match pattern for the URLs to redirect
// Note: https://arxiv.org/pdf/<id> is the direct link, then the url is renamed to https://arxiv.org/pdf/<id>.pdf
// we capture only the last url (the one that ends with '.pdf').
Expand Down
2 changes: 1 addition & 1 deletion firefox/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
],
"content_security_policy": "script-src 'self'; object-src 'self' https://arxiv.org https://export.arxiv.org;",
"web_accessible_resources": [
"pdfviewer.html"
"pdf.js/build/generic/web/viewer.html"
],
"icons": {
"16": "icon16.png",
Expand Down
2 changes: 1 addition & 1 deletion firefox/pdf.js
Submodule pdf.js updated 3 files
+2 −5 web/app.js
+5 −0 web/viewer.css
+3 −2 web/viewer.html
27 changes: 0 additions & 27 deletions firefox/pdfviewer.html

This file was deleted.

0 comments on commit 98c4fae

Please sign in to comment.