mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-09 19:22:51 +00:00
fix: iOS app not starting
This commit is contained in:
committed by
Thea Schöbl
parent
8b5b4c765b
commit
66712bdd24
@@ -75,10 +75,10 @@ export class AppComponent implements AfterContentInit {
|
||||
});
|
||||
|
||||
if (document.readyState === 'complete') {
|
||||
requestIdleCallback(this.hideSplash.bind(this));
|
||||
this.hideSplash();
|
||||
} else {
|
||||
document.addEventListener('readystatechange', () => {
|
||||
if (document.readyState === 'complete') requestIdleCallback(this.hideSplash.bind(this));
|
||||
if (document.readyState === 'complete') this.hideSplash();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,7 +89,11 @@ export class ScheduleSyncService {
|
||||
async taskId => {
|
||||
await Promise.all([this.postDifferencesNotification(), this.syncNativeCalendar()]);
|
||||
|
||||
await BackgroundFetch.finish(taskId);
|
||||
BackgroundFetch.finish(taskId);
|
||||
},
|
||||
async taskId => {
|
||||
console.log('[BackgroundFetch] TIMEOUT:', taskId);
|
||||
BackgroundFetch.finish(taskId);
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user