File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import {Injectable} from '@angular/core';
10
10
11
11
// Whether the current platform supports the V8 Break Iterator. The V8 check
12
12
// is necessary to detect all Blink based browsers.
13
- const hasV8BreakIterator = ( typeof ( Intl ) !== 'undefined' && ( Intl as any ) . v8BreakIterator ) ;
13
+ const hasV8BreakIterator = ( typeof Intl !== 'undefined' && ( Intl as any ) . v8BreakIterator ) ;
14
14
15
15
/**
16
16
* Service to detect the current platform by comparing the userAgent strings and
@@ -29,8 +29,8 @@ export class Platform {
29
29
30
30
/** Whether the current rendering engine is Blink. */
31
31
// EdgeHTML and Trident mock Blink specific things and need to be excluded from this check.
32
- BLINK : boolean = this . isBrowser &&
33
- ( ! ! ( ( window as any ) . chrome || hasV8BreakIterator ) && ! ! CSS && ! this . EDGE && ! this . TRIDENT ) ;
32
+ BLINK : boolean = this . isBrowser && ( ! ! ( ( window as any ) . chrome || hasV8BreakIterator ) &&
33
+ typeof CSS !== 'undefined' && ! this . EDGE && ! this . TRIDENT ) ;
34
34
35
35
/** Whether the current rendering engine is WebKit. */
36
36
// Webkit is part of the userAgent in EdgeHTML, Blink and Trident. Therefore we need to
You can’t perform that action at this time.
0 commit comments