mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-19 16:13:06 +00:00
@@ -13,8 +13,7 @@
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import {Component} from '@angular/core';
|
||||
import {SplashScreen} from '@ionic-native/splash-screen/ngx';
|
||||
import {StatusBar} from '@ionic-native/status-bar/ngx';
|
||||
import {SplashScreen} from '@capacitor/splash-screen';
|
||||
import {Platform} from '@ionic/angular';
|
||||
import {NGXLogger} from 'ngx-logger';
|
||||
import {ConfigProvider} from './modules/config/config.provider';
|
||||
@@ -45,16 +44,12 @@ export class AppComponent {
|
||||
/**
|
||||
*
|
||||
* @param platform TODO
|
||||
* @param statusBar TODO
|
||||
* @param splashScreen TODO
|
||||
* @param settingsProvider TODO
|
||||
* @param configProvider TODO
|
||||
* @param logger An angular logger
|
||||
*/
|
||||
constructor(
|
||||
private readonly platform: Platform,
|
||||
private readonly statusBar: StatusBar,
|
||||
private readonly splashScreen: SplashScreen,
|
||||
private readonly settingsProvider: SettingsProvider,
|
||||
private readonly configProvider: ConfigProvider,
|
||||
private readonly logger: NGXLogger,
|
||||
@@ -67,10 +62,7 @@ export class AppComponent {
|
||||
*/
|
||||
async initializeApp() {
|
||||
this.platform.ready().then(async () => {
|
||||
// Okay, so the platform is ready and our plugins are available.
|
||||
// Here you can do any higher level native things you might need.
|
||||
this.statusBar.styleDefault();
|
||||
this.splashScreen.hide();
|
||||
await SplashScreen.hide();
|
||||
|
||||
// initialise the configProvider
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user