From 46dbbb545166ca59608ffb213258f175dc540395 Mon Sep 17 00:00:00 2001 From: DAB0mB Date: Thu, 26 Jan 2017 14:55:37 -0200 Subject: [PATCH] Step 1.8: Check if cordova exists --- src/app/app.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index f410c6423..769f29261 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -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(); + } }); } }