fix(BrowserUtil): fix supportsIntlApi()
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import {getDOM} from '../src/dom/dom_adapter';
|
||||
import {ListWrapper} from '../src/facade/collection';
|
||||
import {RegExp, RegExpWrapper, StringWrapper, isPresent, isString} from '../src/facade/lang';
|
||||
import {RegExp, RegExpWrapper, StringWrapper, isPresent, isString, global} from '../src/facade/lang';
|
||||
|
||||
export class BrowserDetection {
|
||||
private _overrideUa: string;
|
||||
@ -41,7 +41,7 @@ export class BrowserDetection {
|
||||
// Note: Edge is disguised as Chrome 42, so checking the "Edge" part is needed,
|
||||
// see https://msdn.microsoft.com/en-us/library/hh869301(v=vs.85).aspx
|
||||
get supportsIntlApi(): boolean {
|
||||
return this._ua.indexOf('Chrome/4') > -1 && this._ua.indexOf('Edge') == -1;
|
||||
return !!(<any>global).Intl;
|
||||
}
|
||||
|
||||
get isChromeDesktop(): boolean {
|
||||
|
Reference in New Issue
Block a user