bitwarden-estensione-browser/src/app/polyfills.ts

23 lines
614 B
TypeScript

/* tslint:disable */
import 'core-js/es6';
import 'core-js/es7/reflect';
require('zone.js/dist/zone');
// IE11 fix, ref: https://github.com/angular/angular/issues/24769
if (!Element.prototype.matches && (Element.prototype as any).msMatchesSelector) {
Element.prototype.matches = (Element.prototype as any).msMatchesSelector;
}
if (process.env.ENV === 'production') {
// Production
} else {
// Development and test
Error['stackTraceLimit'] = Infinity;
require('zone.js/dist/long-stack-trace-zone');
}
// Other polyfills
require('whatwg-fetch');
require('webcrypto-shim');
/* tslint:enable */