Last active
September 29, 2023 17:15
-
-
Save mrpapercut/2ac7d5ed0551d04ac649 to your computer and use it in GitHub Desktop.
Chrome Packaged App example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Javascript goes here | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chrome.app.runtime.onLaunched.addListener(function() { | |
chrome.app.window.create('index.html', { | |
frame: 'none', | |
outerBounds: { | |
'width': 480, | |
'height': 640 | |
}, | |
resizable: false | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<link href="stylesheet.css" rel="stylesheet"> | |
<script src="app.js"></script> | |
</head> | |
<body> | |
<h1>Hello world</h1> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"manifest_version": 2, | |
"name": "Package Calculator", | |
"description": "Package calculator for calculating packages", | |
"version": "0.0.1", | |
"app": { | |
"background": { | |
"scripts": ["background.js"] | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* CSS goes here | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment