From 818979266dfd1ffa447a117ca2b7fd0ef2b20c5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Tue, 2 Nov 2021 08:57:22 +0100 Subject: [PATCH] MOBILE-3899 network: Show offline message at start --- src/app/app.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 8d21b8dfb..5f2359678 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -297,6 +297,9 @@ export class AppComponent implements OnInit, AfterViewInit { }); }); + const isOnline = CoreApp.isOnline(); + document.body.classList.toggle('core-offline', !isOnline); + // Set StatusBar properties. CoreApp.setStatusBarColor(); }