We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a818579 commit e436775Copy full SHA for e436775
src/lib/core/platform/platform.ts
100644
100755
@@ -4,7 +4,9 @@ declare const window: any;
4
5
// Whether the current platform supports the V8 Break Iterator. The V8 check
6
// is necessary to detect all Blink based browsers.
7
-const hasV8BreakIterator = (window.Intl && (window.Intl as any).v8BreakIterator);
+const hasV8BreakIterator = typeof(window) !== 'undefined' ?
8
+ (window.Intl && (window.Intl as any).v8BreakIterator) :
9
+ (typeof(Intl) !== 'undefined' && (Intl as any).v8BreakIterator);
10
11
/**
12
* Service to detect the current platform by comparing the userAgent strings and
0 commit comments