aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/main.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-02-08 16:16:40 +0100
committerChocobozzz <chocobozzz@cpy.re>2019-02-11 09:13:02 +0100
commitc7ca4c8be781753f86d806015b182f1ee5443fcf (patch)
treea1b7efaa51aee9d1ab5fc9400610efad47d72cc4 /client/src/main.ts
parent597a9266d426aa04c2f229168e4285a76bea2c12 (diff)
downloadPeerTube-c7ca4c8be781753f86d806015b182f1ee5443fcf.tar.gz
PeerTube-c7ca4c8be781753f86d806015b182f1ee5443fcf.tar.zst
PeerTube-c7ca4c8be781753f86d806015b182f1ee5443fcf.zip
Fix client with google bot
Diffstat (limited to 'client/src/main.ts')
-rw-r--r--client/src/main.ts2
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) {