Skip to content

Instantly share code, notes, and snippets.

@stevoPerisic
Created February 22, 2013 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevoPerisic/5014998 to your computer and use it in GitHub Desktop.
Save stevoPerisic/5014998 to your computer and use it in GitHub Desktop.
Chrome Packaged App
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('window.html', {
'width': 400,
'height': 500
});
});
{
"name": "Hello World!",
"description": "My first packaged app.",
"version": "2",
"app": {
"background": {
"scripts": ["background.js"]
}
},
"icons": { "16": "appIcon_16.png", "128": "appIcon.png" }
}
Gotta have these images available in the same folder
- 1355775031_Desktop.png
- appIcon_16.png
- appIcon.png
Link for more info
- http://developer.chrome.com/apps/about_apps.html
<!DOCTYPE html>
<html>
<head>
<style>
body{
background:#093;
color:#FFF;
}
</style>
</head>
<body>
<div>Hello, world!</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment