Skip to content

Commit

Permalink
Simplify PDFViewerApplication::supportsPrinting (follow-up of #15894)
Browse files Browse the repository at this point in the history
  • Loading branch information
calixteman committed Jan 11, 2023
1 parent d6f63b5 commit 8068dff
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -702,10 +702,7 @@ const PDFViewerApplication = {
},

get supportsPrinting() {
return (
(typeof PDFJSDev === "undefined" || !PDFJSDev.test("GECKOVIEW")) &&
PDFPrintServiceFactory.instance.supportsPrinting
);
return PDFPrintServiceFactory.instance.supportsPrinting;
},

get supportsFullscreen() {
Expand Down

0 comments on commit 8068dff

Please sign in to comment.