Fix status bar on iOS

This commit is contained in:
Tankred Hase 2014-08-13 13:49:17 +02:00
parent e229e106dd
commit facc9f13da
1 changed files with 14 additions and 5 deletions

View File

@ -1,11 +1,20 @@
'use strict';
// open chrome app in new window
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', {
'bounds': {
'width': 1024,
'height': 768
chrome.runtime.getPlatformInfo(function(info) {
// don't render statusbar over app UI on iOS
if (info.os === 'cordova-ios' && window.StatusBar) {
window.StatusBar.overlaysWebView(false);
}
// open chrome app in new window
chrome.app.window.create('index.html', {
'bounds': {
'width': 1024,
'height': 768
}
});
});
});