UNPKG

ngx-extended-pdf-viewer

Version:

Embedding PDF files in your Angular application. Highly configurable viewer including the toolbar, sidebar, and all the features you're used to.

19 lines (14 loc) 494 B
// This file provokes syntax errors if your browser doesn't support // some new JavaScript standard. This allows ngx-extended-pdf-viewer // to switch to the slow but reliable legacy builds. const optionalChaining = { support: true, }; // Does your browser support the logical assignment operators? let x = false; x ||= true; // Does your browser doesn't support private fields? class ClassWithPrivateField { #privateField; } window.supportsOptionalChaining = optionalChaining?.support;