Skip to content
Permalink
Browse files

fix(platform): prevent error with Platform.is on Android 4.4 (#18387)

  • Loading branch information...
cezarykluczynski authored and liamdebeasi committed Jun 10, 2019
1 parent 10de1da commit 54bdb367c255052e2a785bb81fd60b632b4a6e93
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 || {};

0 comments on commit 54bdb36

Please sign in to comment.
You can’t perform that action at this time.