mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-28 13:39:44 +07:00
16 lines
375 B
JavaScript
16 lines
375 B
JavaScript
/**
|
|
* Listens for the app launching then creates the window
|
|
*
|
|
* @see http://developer.chrome.com/apps/app.runtime.html
|
|
* @see http://developer.chrome.com/apps/app.window.html
|
|
*/
|
|
chrome.app.runtime.onLaunched.addListener(function() {
|
|
chrome.app.window.create('index.html', {
|
|
id: "camCaptureID",
|
|
innerBounds: {
|
|
width: 700,
|
|
height: 600
|
|
}
|
|
});
|
|
});
|