Skip to content

Commit 98c4fae

Browse files
committed
make extension use our own js viewer
1 parent 1ffca94 commit 98c4fae

File tree

4 files changed

+3
-30
lines changed

4 files changed

+3
-30
lines changed

firefox/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var app = {};
44
app.name = "[arXiv-utils]";
55
// For our PDF container.
66
app.pdfviewer = "pdfviewer.html";
7-
app.pdfviewerTarget = "pdfviewer.html?target=";
7+
app.pdfviewerTarget = "pdf.js/build/generic/web/viewer.html?file=";
88
// The match pattern for the URLs to redirect
99
// Note: https://arxiv.org/pdf/<id> is the direct link, then the url is renamed to https://arxiv.org/pdf/<id>.pdf
1010
// we capture only the last url (the one that ends with '.pdf').

firefox/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
],
3030
"content_security_policy": "script-src 'self'; object-src 'self' https://arxiv.org https://export.arxiv.org;",
3131
"web_accessible_resources": [
32-
"pdfviewer.html"
32+
"pdf.js/build/generic/web/viewer.html"
3333
],
3434
"icons": {
3535
"16": "icon16.png",

firefox/pdf.js

firefox/pdfviewer.html

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)