diff options
author | Chocobozzz <me@florianbigard.com> | 2019-02-11 11:52:34 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-02-11 11:52:34 +0100 |
commit | 88108880bbdba473cfe36ecbebc1c3c4f972e102 (patch) | |
tree | b242efb3b4f0d7e49d88f2d1f2063b5b3b0489c0 /client/src/main.ts | |
parent | 53a94c7cfa8368da4cd248d65df8346905938f0c (diff) | |
parent | 9b712a2017e4ab3cf12cd6bd58278905520159d0 (diff) | |
download | PeerTube-88108880bbdba473cfe36ecbebc1c3c4f972e102.tar.gz PeerTube-88108880bbdba473cfe36ecbebc1c3c4f972e102.tar.zst PeerTube-88108880bbdba473cfe36ecbebc1c3c4f972e102.zip |
Merge branch 'develop' into pr/1217
Diffstat (limited to 'client/src/main.ts')
-rw-r--r-- | client/src/main.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/main.ts b/client/src/main.ts index f456e89c5..86fdabba5 100644 --- a/client/src/main.ts +++ b/client/src/main.ts | |||
@@ -8,7 +8,7 @@ import { hmrBootstrap } from './hmr' | |||
8 | import { getDevLocale, isOnDevLocale } from '@app/shared/i18n/i18n-utils' | 8 | import { getDevLocale, isOnDevLocale } from '@app/shared/i18n/i18n-utils' |
9 | import { buildFileLocale } from '../../shared' | 9 | import { buildFileLocale } from '../../shared' |
10 | 10 | ||
11 | let providers = [] | 11 | let providers: any[] = [] |
12 | if (environment.production) { | 12 | if (environment.production) { |
13 | enableProdMode() | 13 | enableProdMode() |
14 | } | 14 | } |
@@ -34,7 +34,7 @@ const bootstrap = () => platformBrowserDynamic() | |||
34 | // .catch(err => console.error('Cannot register service worker.', err)) | 34 | // .catch(err => console.error('Cannot register service worker.', err)) |
35 | // } | 35 | // } |
36 | 36 | ||
37 | if (navigator.serviceWorker) { | 37 | if (navigator.serviceWorker && typeof navigator.serviceWorker.getRegistrations === 'function') { |
38 | navigator.serviceWorker.getRegistrations() | 38 | navigator.serviceWorker.getRegistrations() |
39 | .then(registrations => { | 39 | .then(registrations => { |
40 | for (const registration of registrations) { | 40 | for (const registration of registrations) { |