Skip to content

Commit

Permalink
Step 1.7: Check if cordova exists
Browse files Browse the repository at this point in the history
  • Loading branch information
DAB0mB committed Feb 26, 2017
1 parent c8f087b commit 6303942
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 (window.hasOwnProperty('cordova')) {
StatusBar.styleDefault();
Splashscreen.hide();
}
});
}
}

0 comments on commit 6303942

Please sign in to comment.