Skip to content

Commit ad55ab0

Browse files
committed
Document Chrome App environment
1 parent 807c60e commit ad55ab0

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,25 @@ Polyfills are included in `src/hello.polyfill.js` this is to bring older browser
906906

907907
HelloJS can also be run on PhoneGap applications. Checkout the demo [hellojs-phonegap-demo](https://github.com/MrSwitch/hellojs-phonegap-demo)
908908

909+
## Chrome Apps
910+
911+
**Demo** [hellojs-chromeapp-demo](https://github.com/MrSwitch/hellojs-chromeapp-demo)
912+
913+
HelloJS module [src/hello.chromeapp.js](./src/hello.chromeapp.js) (also bundled in dist/*) shims the library to support the unique API's of the Chrome App environment (or Chrome Extension).
914+
915+
916+
### Chrome manifest.json prerequisites
917+
918+
The `manifest.json` file must have the following permissions...
919+
```json
920+
...
921+
"permissions": [
922+
"identity",
923+
"storage",
924+
"https://*/"],
925+
...
926+
```
927+
909928
# Thank you
910929

911930
HelloJS relies on these fantastic services for it's development and deployment, without which it would still be kicking around in a cave - not evolving very fast.

index.html

+19
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,25 @@ <h2>PhoneGap Support</h2>
945945

946946
<p>HelloJS can also be run on PhoneGap applications. Checkout the demo <a href="https://github.com/MrSwitch/hellojs-phonegap-demo">hellojs-phonegap-demo</a></p>
947947

948+
<h2>Chrome Apps</h2>
949+
950+
<b>Demo</b> <a href="https://github.com/MrSwitch/hellojs-chromeapp-demo">hellojs-chromeapp-demo</a>
951+
952+
<p>HelloJS module <a href="./src/hello.chromeapp.js">src/hello.chromeapp.js</a> (also bundled in dist/*) shims the library to support the unique API's of the Chrome App environment (or Chrome Extension).</p>
953+
954+
955+
<h3>Chrome manifest.json prerequisites</h3>
956+
957+
<p>The <code>manifest.json</code> file must have the following permissions...</p>
958+
<pre type="json">
959+
...
960+
"permissions": [
961+
"identity",
962+
"storage",
963+
"https://*/"],
964+
...
965+
</pre>
966+
948967
<h1>Thank you</h1>
949968

950969
<p>HelloJS relies on these fantastic services for it's development and deployment, without which it would still be kicking around in a cave - not evolving very fast.</p>

0 commit comments

Comments
 (0)