Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Step 1.8: Check if cordova exists
  • Loading branch information
DAB0mB committed Mar 23, 2017
1 parent 5d69f04 commit 0375f80
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();
}
});
}
}

0 comments on commit 0375f80

Please sign in to comment.