2013-08-20 00:53:03 +00:00
|
|
|
chrome.app.runtime.onLaunched.addListener(function(launchData) {
|
|
|
|
//launchData.items will contain files from file manager
|
2013-08-23 23:03:46 +00:00
|
|
|
chrome.storage.local.get("bounds", function(data) {
|
|
|
|
var bounds = data.bounds || {
|
|
|
|
width: 800,
|
|
|
|
height: 600,
|
|
|
|
left: 10,
|
|
|
|
top: 10
|
|
|
|
};
|
|
|
|
chrome.app.window.create("main.html", {
|
|
|
|
bounds: bounds
|
|
|
|
}, function(mainWindow) {
|
|
|
|
mainWindow.contentWindow.launchData = launchData;
|
|
|
|
});
|
|
|
|
|
2013-08-20 00:53:03 +00:00
|
|
|
});
|
2013-08-22 06:35:14 +00:00
|
|
|
|
2013-08-20 00:53:03 +00:00
|
|
|
});
|