mirror of
https://github.com/moparisthebest/mail
synced 2024-11-26 10:52:17 -05:00
Fix status bar on iOS
This commit is contained in:
parent
e229e106dd
commit
facc9f13da
@ -1,11 +1,20 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// open chrome app in new window
|
|
||||||
chrome.app.runtime.onLaunched.addListener(function() {
|
chrome.app.runtime.onLaunched.addListener(function() {
|
||||||
chrome.app.window.create('index.html', {
|
|
||||||
'bounds': {
|
chrome.runtime.getPlatformInfo(function(info) {
|
||||||
'width': 1024,
|
// don't render statusbar over app UI on iOS
|
||||||
'height': 768
|
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
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
Loading…
Reference in New Issue
Block a user