web-feature: pdfViewerEnabled

baseline logo Widely available

The navigator.pdfViewerEnabled property is a boolean for whether the browser navigates to and shows a PDF in the browser window or downloads the PDF.