Skip to content

Commit

Permalink
Step 1.9: Check if cordova exists
Browse files Browse the repository at this point in the history
  • Loading branch information
DAB0mB authored and darkbasic committed Jun 13, 2017
1 parent 236d4eb commit 973da47
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/app.component.ts
Expand Up @@ -14,8 +14,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();
}
});
}
}
Expand Down

0 comments on commit 973da47

Please sign in to comment.