From 54bdb367c255052e2a785bb81fd60b632b4a6e93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cezary=20Kluczy=C5=84ski?= Date: Mon, 10 Jun 2019 16:47:23 +0200 Subject: [PATCH] fix(platform): prevent error with Platform.is on Android 4.4 (#18387) --- core/src/utils/platform.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/utils/platform.ts b/core/src/utils/platform.ts index 0353576924..b1465fd5a4 100644 --- a/core/src/utils/platform.ts +++ b/core/src/utils/platform.ts @@ -4,7 +4,7 @@ export type Platforms = keyof typeof PLATFORMS_MAP; export const getPlatforms = (win: any) => setupPlatforms(win); export const isPlatform = (win: Window, platform: Platforms) => - getPlatforms(win).includes(platform); + getPlatforms(win).indexOf(platform) > -1; export const setupPlatforms = (win: any) => { win.Ionic = win.Ionic || {};