diff options
author | Chocobozzz <me@florianbigard.com> | 2019-02-11 14:09:23 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-02-11 14:09:23 +0100 |
commit | b718fd22374d64534bcfe69932cf562894abed6a (patch) | |
tree | 311d3c67e2a4d1f33ebdd1dc163527de9d33d0f7 /client/src/main.ts | |
parent | adb115f5522bea4d52456a9fc5eb4140bb064476 (diff) | |
parent | 501e961199578129629cf0567033d13efced9904 (diff) | |
download | PeerTube-b718fd22374d64534bcfe69932cf562894abed6a.tar.gz PeerTube-b718fd22374d64534bcfe69932cf562894abed6a.tar.zst PeerTube-b718fd22374d64534bcfe69932cf562894abed6a.zip |
Merge branch 'develop' into pr/1285
Diffstat (limited to 'client/src/main.ts')
-rw-r--r-- | client/src/main.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/main.ts b/client/src/main.ts index dee962180..86fdabba5 100644 --- a/client/src/main.ts +++ b/client/src/main.ts | |||
@@ -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) { |