1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Simplify PDFViewerApplication::supportsPrinting (follow-up of #15894)

This commit is contained in:
Calixte Denizet 2023-01-11 12:33:33 +01:00
parent d6f63b5fb7
commit 8068dff9d1

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() {