if ("application/pdf" in navigator.mimeTypes) {
// browser supports inline viewing of PDF files.
const { description, suffixes } = navigator.mimeTypes["application/pdf"];
console.log(`Description: ${description}, Suffix: ${suffixes}`);
// expected output: Description: Portable Document Format, Suffix: pdf
}Navigator: mimeTypes property / notebook
Navigator: mimeTypes property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.