MOBILE-3320 app: Remove StatusBar warnings in browser
This commit is contained in:
parent
c5d18dffdc
commit
562a30655d
@ -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.
|
* @param color RGB color to use as status bar background. If not set the css variable will be read.
|
||||||
*/
|
*/
|
||||||
setStatusBarColor(color?: string): void {
|
setStatusBarColor(color?: string): void {
|
||||||
|
if (!this.isMobile()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!color) {
|
if (!color) {
|
||||||
// Get the default color to change it.
|
// Get the default color to change it.
|
||||||
const element = document.querySelector('ion-header ion-toolbar');
|
const element = document.querySelector('ion-header ion-toolbar');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user