UADetect PDFviewerStatus
Componet
Description
Tells whether the clients browser is able to view PDF files.
Possible Returns
PDFviewerEnabled
PDFviewerDisabled
Usage Example
#1
import { PDFviewerStatus } from 'uadetect';if (PDFviewerStatus === 'PDFviewerEnabled') { element.innerHTML = 'Show PDF';}
#2
import { PDFviewerStatus } from 'uadetect';if (PDFviewerStatus === 'PDFviewerDisabled') { element.innerHTML = 'Download PDF';}
Table of Contents