diff --git a/src/cdk/platform/platform.ts b/src/cdk/platform/platform.ts index a708f4de4577..6596c718a1a2 100755 --- a/src/cdk/platform/platform.ts +++ b/src/cdk/platform/platform.ts @@ -48,7 +48,7 @@ export class Platform { /** Whether the current platform is Apple iOS. */ IOS: boolean = this.isBrowser && /iPad|iPhone|iPod/.test(navigator.userAgent) && - !(window as any).MSStream; + !('MSStream' in window); /** Whether the current browser is Firefox. */ // It's difficult to detect the plain Gecko engine, because most of the browsers identify