Merge pull request #15914 from calixteman/15894_followup

Simplify PDFViewerApplication::supportsPrinting (follow-up of #15894)
This commit is contained in:
calixteman 2023-01-11 14:07:52 +01:00 committed by GitHub
commit 633d5e7af0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -702,10 +702,7 @@ const PDFViewerApplication = {
},
get supportsPrinting() {
return (
(typeof PDFJSDev === "undefined" || !PDFJSDev.test("GECKOVIEW")) &&
PDFPrintServiceFactory.instance.supportsPrinting
);
return PDFPrintServiceFactory.instance.supportsPrinting;
},
get supportsFullscreen() {