mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
check StatusBar obj exists before calling it
This commit is contained in:
@@ -251,11 +251,11 @@
|
||||
ionic.requestAnimationFrame(function(){
|
||||
if(ionic.Platform._showStatusBar) {
|
||||
// they do not want it to be full screen
|
||||
StatusBar.show();
|
||||
window.StatusBar && window.StatusBar.show();
|
||||
document.body.classList.remove('status-bar-hide');
|
||||
} else {
|
||||
// it should be full screen
|
||||
StatusBar.hide();
|
||||
window.StatusBar && window.StatusBar.hide();
|
||||
document.body.classList.add('status-bar-hide');
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user