Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(@ionic/angular): Pre-populate the platforms array for further usage #14466

Merged

Conversation

AhsanAyaz
Copy link
Contributor

The _platforms array wasn't being populated on provider instantiation. Added the appropriate chunk to populate the array so that when we use other functions from the provider, we get the correct data in return.

Short description of what this resolves:

It resolves the usage of Platform.is() and other functions from @ionic/angular/src/providers/platform.ts
The functions were not working as expected because the _platforms array was always empty.
Fixed it.

Changes proposed in this pull request:

  • Pre-populating the platforms array

Ionic Version: 4.x

Fixes: #14465

…nd similar functions work appropriately

The `_platforms` array wasn't being populated on provider instantiation. Added the appropriate code to populate the array so that when we use other functions from the provider, we get the correct data in return.
@manucorporat manucorporat merged commit d177087 into ionic-team:master May 14, 2018
@manucorporat
Copy link
Contributor

Thanks so much!

@AhsanAyaz AhsanAyaz deleted the fix-ionic-angular-platform-detection branch September 17, 2018 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants