Update README.md

This commit is contained in:
Michel vd Steege 2018-07-05 18:04:16 +02:00 committed by GitHub
parent b35d563266
commit f20afe1f51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,17 +4,17 @@ Tools to add progressive web app functionality to your silverstripe website
## Installation
```
composer require pixelspin/silverstripe-progressivewebapp
composer require michelsteege/silverstripe-progressivewebapp
```
## Usage
- Install the module, run dev/build and fill in the settings in the siteconfig
- Include the required js to register the service worker
```
Requirements::javascript('pixelspin/silverstripe-progressivewebapp:resources/js/progressivewebapp.js');
Requirements::javascript('michelsteege/silverstripe-progressivewebapp:resources/js/progressivewebapp.js');
```
- Add the following tags to the head of your website
```
<meta name="theme-color" content="$SiteConfig.ManifestColor">
<link rel="manifest" href="{$BaseHref}manifest.json">
```
```