mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-28 13:39:44 +07:00
20 lines
397 B
JavaScript
20 lines
397 B
JavaScript
var platformInfo = {};
|
|
|
|
chrome.app.runtime.onLaunched.addListener(function() {
|
|
|
|
// Load platformInfo before continuing.
|
|
chrome.runtime.getPlatformInfo(function(info) {
|
|
platformInfo = info;
|
|
|
|
chrome.app.window.create('main.html', {
|
|
id: 'main',
|
|
frame: 'none',
|
|
// alphaEnabled: true,
|
|
innerBounds: {
|
|
width: 880,
|
|
height: 480
|
|
}
|
|
});
|
|
});
|
|
});
|