Permalink
Browse files

Step 1.7: Check if cordova exists

  • Loading branch information...
DAB0mB committed Dec 21, 2016
1 parent c8f087b commit 6303942011a413275567ba6564644dcbd18da248
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/app/app.component.ts
View
@@ -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.