mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-19 08:02:55 +00:00
refactor: pre release cleanup all over the place
This commit is contained in:
@@ -94,19 +94,21 @@ export class AppComponent implements AfterContentInit {
|
||||
});
|
||||
this.platform.ready().then(async () => {
|
||||
if (Capacitor.isNativePlatform()) {
|
||||
await StatusBar.setBackgroundColor({
|
||||
color: getComputedStyle(document.documentElement)
|
||||
.getPropertyValue('--ion-color-primary')
|
||||
.trim(),
|
||||
});
|
||||
await StatusBar.setStyle({style: Style.Dark});
|
||||
await StatusBar.setOverlaysWebView({overlay: false});
|
||||
await NavigationBar.setColor({
|
||||
color: getComputedStyle(document.documentElement)
|
||||
.getPropertyValue('--ion-background-color')
|
||||
.trim(),
|
||||
darkButtons: true,
|
||||
});
|
||||
if (Capacitor.getPlatform() === 'android') {
|
||||
await StatusBar.setBackgroundColor({
|
||||
color: getComputedStyle(document.documentElement)
|
||||
.getPropertyValue('--ion-color-primary')
|
||||
.trim(),
|
||||
});
|
||||
await StatusBar.setOverlaysWebView({overlay: false});
|
||||
await NavigationBar.setColor({
|
||||
color: getComputedStyle(document.documentElement)
|
||||
.getPropertyValue('--ion-background-color')
|
||||
.trim(),
|
||||
darkButtons: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
await this.authNotificationsInit();
|
||||
|
||||
@@ -120,7 +122,7 @@ export class AppComponent implements AfterContentInit {
|
||||
});
|
||||
|
||||
window.addEventListener('touchmove', this.touchMoveEvent, true);
|
||||
if (Capacitor.isNativePlatform()) {
|
||||
if (Capacitor.getPlatform() === 'ios') {
|
||||
Keyboard.setResizeMode({mode: KeyboardResize.None});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user