Skip to content

Commit e6b1359

Browse files
DAB0mBdarkbasic
authored andcommitted
Step 1.10: Check if cordova exists
1 parent d414de6 commit e6b1359

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/app/app.component.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ export class MyApp {
1414
platform.ready().then(() => {
1515
// Okay, so the platform is ready and our plugins are available.
1616
// Here you can do any higher level native things you might need.
17-
statusBar.styleDefault();
18-
splashScreen.hide();
17+
if (platform.is('cordova')) {
18+
statusBar.styleDefault();
19+
splashScreen.hide();
20+
}
1921
});
2022
}
2123
}

0 commit comments

Comments
 (0)