aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.module.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-08 17:31:05 +0100
committerChocobozzz <me@florianbigard.com>2018-02-08 17:31:05 +0100
commit7193ad1044d2dfad8f929f0951f9a3601c056f67 (patch)
treee40ab985552696caad2e09861842d043e436fe7d /client/src/app/app.module.ts
parent151edeee3a1bff047bda4cdb60d98ad74f627488 (diff)
downloadPeerTube-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.ts9
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 @@
1import { NgModule } from '@angular/core' 1import { NgModule } from '@angular/core'
2import { BrowserModule } from '@angular/platform-browser' 2import { BrowserModule } from '@angular/platform-browser'
3import { ServiceWorkerModule } from '@angular/service-worker'
3import { AboutModule } from '@app/about' 4import { AboutModule } from '@app/about'
4import { ResetPasswordModule } from '@app/reset-password' 5import { ResetPasswordModule } from '@app/reset-password'
5 6
6import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core' 7import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core'
8import { environment } from '../environments/environment'
7 9
8import { AccountModule } from './account' 10import { 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})