mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-29 13:49:41 +07:00
22 lines
491 B
JavaScript
22 lines
491 B
JavaScript
/**
|
|
* Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
**/
|
|
|
|
|
|
/**
|
|
* Listens for the app launching then creates the window
|
|
*
|
|
* @see http://developer.chrome.com/apps/app.window.html
|
|
*/
|
|
chrome.app.runtime.onLaunched.addListener(function() {
|
|
chrome.app.window.create('index.html', {
|
|
id: "mainwin",
|
|
innerBounds: {
|
|
height: 550,
|
|
width: 800
|
|
}
|
|
});
|
|
});
|