mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-27 13:29:34 +07:00
24 lines
548 B
JavaScript
24 lines
548 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 https://developer.chrome.com/docs/extensions/reference/app_window
|
|
*/
|
|
chrome.app.runtime.onLaunched.addListener(function() {
|
|
chrome.app.window.create('index.html', {
|
|
id: "clockWinID",
|
|
innerBounds: {
|
|
height: 550,
|
|
width: 800,
|
|
top: 100
|
|
},
|
|
frame: 'none'
|
|
});
|
|
});
|