1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-29 20:32:15 -05:00

Fix status bar on iOS

This commit is contained in:
Tankred Hase 2014-08-13 13:49:17 +02:00
parent e229e106dd
commit facc9f13da

View File

@ -1,7 +1,14 @@
'use strict'; 'use strict';
// open chrome app in new window
chrome.app.runtime.onLaunched.addListener(function() { chrome.app.runtime.onLaunched.addListener(function() {
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', { chrome.app.window.create('index.html', {
'bounds': { 'bounds': {
'width': 1024, 'width': 1024,
@ -9,3 +16,5 @@ chrome.app.runtime.onLaunched.addListener(function() {
} }
}); });
}); });
});