refactor(platform-browser): remove `Intl` references (#40883)

Since `Intl` API was dropped to use to improve browser support,
would be nice to remove the references of it.

PR Close #40883
This commit is contained in:
Dmitrij Kuba 2021-02-17 14:42:41 +02:00 committed by Zach Arend
parent f57cd19e0c
commit e7dfd7a188
1 changed files with 0 additions and 8 deletions

View File

@ -59,14 +59,6 @@ export class BrowserDetection {
return this.isAndroid || this.isIE || this.isIOS7;
}
// The Intl API is only natively supported in Chrome, Firefox, IE11 and Edge.
// This detector is needed in tests to make the difference between:
// 1) IE11/Edge: they have a native Intl API, but with some discrepancies
// 2) IE9/IE10: they use the polyfill, and so no discrepancies
get supportsNativeIntlApi(): boolean {
return !!(<any>global).Intl && (<any>global).Intl !== (<any>global).IntlPolyfill;
}
get isChromeDesktop(): boolean {
return this._ua.indexOf('Chrome') > -1 && this._ua.indexOf('Mobile Safari') == -1 &&
this._ua.indexOf('Edge') == -1;