Files
chrome-extensions-samples/samples/desktop-capture/background.js

16 lines
380 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: "desktopCaptureID",
innerBounds: {
width: 700,
height: 600
}
});
});