Skip to content

Commit ed30e24

Browse files
kesselbbackportbot[bot]
authored andcommitted
Disable download of pdf files
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
1 parent 58a1695 commit ed30e24

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/public.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ window.addEventListener('DOMContentLoaded', function() {
7272
}
7373

7474
if (PDFViewerApplication) {
75+
// Disable download function when downloads are hidden, as even if the
76+
// buttons in the UI are hidden the download could still be triggered
77+
// with Ctrl|Meta+S.
78+
PDFViewerApplication.download = function() {
79+
}
80+
7581
// Disable printing service when downloads are hidden, as even if the
7682
// buttons in the UI are hidden the printing could still be triggered
7783
// with Ctrl|Meta+P.

0 commit comments

Comments
 (0)