MOBILE-3320 app: Remove StatusBar warnings in browser

main
Dani Palou 2021-06-11 12:16:18 +02:00
parent c5d18dffdc
commit 562a30655d
1 changed files with 4 additions and 0 deletions

View File

@ -629,6 +629,10 @@ export class CoreAppProvider {
* @param color RGB color to use as status bar background. If not set the css variable will be read.
*/
setStatusBarColor(color?: string): void {
if (!this.isMobile()) {
return;
}
if (!color) {
// Get the default color to change it.
const element = document.querySelector('ion-header ion-toolbar');