diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-08 17:31:05 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-08 17:31:05 +0100 |
commit | 7193ad1044d2dfad8f929f0951f9a3601c056f67 (patch) | |
tree | e40ab985552696caad2e09861842d043e436fe7d /client/src/app/app.module.ts | |
parent | 151edeee3a1bff047bda4cdb60d98ad74f627488 (diff) | |
download | PeerTube-7193ad1044d2dfad8f929f0951f9a3601c056f67.tar.gz PeerTube-7193ad1044d2dfad8f929f0951f9a3601c056f67.tar.zst PeerTube-7193ad1044d2dfad8f929f0951f9a3601c056f67.zip |
Add service worker
Diffstat (limited to 'client/src/app/app.module.ts')
-rw-r--r-- | client/src/app/app.module.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts index 1134d061b..34114b60b 100644 --- a/client/src/app/app.module.ts +++ b/client/src/app/app.module.ts | |||
@@ -1,9 +1,11 @@ | |||
1 | import { NgModule } from '@angular/core' | 1 | import { NgModule } from '@angular/core' |
2 | import { BrowserModule } from '@angular/platform-browser' | 2 | import { BrowserModule } from '@angular/platform-browser' |
3 | import { ServiceWorkerModule } from '@angular/service-worker' | ||
3 | import { AboutModule } from '@app/about' | 4 | import { AboutModule } from '@app/about' |
4 | import { ResetPasswordModule } from '@app/reset-password' | 5 | import { ResetPasswordModule } from '@app/reset-password' |
5 | 6 | ||
6 | import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core' | 7 | import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core' |
8 | import { environment } from '../environments/environment' | ||
7 | 9 | ||
8 | import { AccountModule } from './account' | 10 | import { AccountModule } from './account' |
9 | 11 | ||
@@ -24,7 +26,8 @@ export function metaFactory (): MetaLoader { | |||
24 | applicationName: 'PeerTube', | 26 | applicationName: 'PeerTube', |
25 | defaults: { | 27 | defaults: { |
26 | title: 'PeerTube', | 28 | title: 'PeerTube', |
27 | description: 'PeerTube, a decentralized video streaming platform using P2P (BitTorrent) directly in the web browser' | 29 | description: 'PeerTube, a federated (ActivityPub) video streaming platform ' + |
30 | 'using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular. ' | ||
28 | } | 31 | } |
29 | }) | 32 | }) |
30 | } | 33 | } |
@@ -57,7 +60,9 @@ export function metaFactory (): MetaLoader { | |||
57 | MetaModule.forRoot({ | 60 | MetaModule.forRoot({ |
58 | provide: MetaLoader, | 61 | provide: MetaLoader, |
59 | useFactory: (metaFactory) | 62 | useFactory: (metaFactory) |
60 | }) | 63 | }), |
64 | |||
65 | ServiceWorkerModule.register('/ngsw-worker.js', { enabled: environment.production }) | ||
61 | ], | 66 | ], |
62 | providers: [ ] | 67 | providers: [ ] |
63 | }) | 68 | }) |