diff --git a/src/lib/core/platform/platform.ts b/src/lib/core/platform/platform.ts old mode 100644 new mode 100755 index ade29058e1de..7e90e3cccf7e --- a/src/lib/core/platform/platform.ts +++ b/src/lib/core/platform/platform.ts @@ -4,7 +4,9 @@ declare const window: any; // Whether the current platform supports the V8 Break Iterator. The V8 check // is necessary to detect all Blink based browsers. -const hasV8BreakIterator = (window.Intl && (window.Intl as any).v8BreakIterator); +const hasV8BreakIterator = typeof(window) !== 'undefined' ? + (window.Intl && (window.Intl as any).v8BreakIterator) : + (typeof(Intl) !== 'undefined' && (Intl as any).v8BreakIterator); /** * Service to detect the current platform by comparing the userAgent strings and