2013-06-04 15:36:13 -04:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
chrome.app.runtime.onLaunched.addListener(function() {
|
2014-08-13 07:49:17 -04:00
|
|
|
|
|
|
|
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);
|
2013-09-03 09:25:02 -04:00
|
|
|
}
|
2014-08-13 07:49:17 -04:00
|
|
|
|
|
|
|
// open chrome app in new window
|
|
|
|
chrome.app.window.create('index.html', {
|
|
|
|
'bounds': {
|
2014-11-04 13:17:52 -05:00
|
|
|
'width': 1280,
|
|
|
|
'height': 800
|
2014-08-13 07:49:17 -04:00
|
|
|
}
|
|
|
|
});
|
2013-09-03 09:25:02 -04:00
|
|
|
});
|
2014-08-13 07:49:17 -04:00
|
|
|
|
2013-06-04 15:36:13 -04:00
|
|
|
});
|