Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 6d6e3fd5c7
Fetching contributors…

Cannot retrieve contributors at this time

10 lines (5 sloc) 0.432 kb

Singleton window

Sample that shows how to use the window API in an app to have a "singleton" window app.

The app keeps track of its window in the background page. If none exists, or if it's closed, it creates a new one. Otherwise it re-focuses the existing one via chrome.app.window.focus().

APIs

Jump to Line
Something went wrong with that request. Please try again.