Skip to content

Commit

Permalink
Step 1.8: Check if cordova exists
Browse files Browse the repository at this point in the history
  • Loading branch information
DAB0mB committed Feb 13, 2017
1 parent 3f936f6 commit 46dbbb5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/app.component.ts
Expand Up @@ -15,8 +15,10 @@ export class MyApp {
platform.ready().then(() => {
// Okay, so the platform is ready and our plugins are available.
// Here you can do any higher level native things you might need.
StatusBar.styleDefault();
Splashscreen.hide();
if (platform.is('cordova')) {
StatusBar.styleDefault();
Splashscreen.hide();
}
});
}
}

1 comment on commit 46dbbb5

@NicholasHattabaugh
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app was working before I added this to the component file has something been deprecated/changed? i'm getting the following error messages:
Typescript Error
Property 'styleDefault' does not exist on type 'typeof StatusBar'.

Typescript Error
Cannot find name 'Splashscreen'.

Please sign in to comment.