I am trying to use ActiveXObject like below
getActiveXObject(pdfCtrl) {
return new ActiveXObject(pdfCtrl);
}
checkPDF() {
let plugin = null;
if (this.getBrowser() === 'ie') {
plugin = this.getActiveXObject('AcroPDF.PDF') || this.getActiveXObject('PDF.PdfCtrl');
}
return plugin;
}
It gives error like ActiveXObject not found. In plain JS this works, but in Angular/typesript compilation phase it throws error. How do i handle this?