From 5196817c5d7cf86b35f3fa2cfe108ba283944482 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 21 Oct 2021 09:24:22 +0200 Subject: Fix privacy concern for remote videos --- client/src/assets/player/peertube-player-manager.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'client/src/assets') diff --git a/client/src/assets/player/peertube-player-manager.ts b/client/src/assets/player/peertube-player-manager.ts index 73b5bc01c..b63d693d4 100644 --- a/client/src/assets/player/peertube-player-manager.ts +++ b/client/src/assets/player/peertube-player-manager.ts @@ -361,8 +361,7 @@ export class PeertubePlayerManager { } let consumeOnly = false - // FIXME: typings - if (navigator && (navigator as any).connection && (navigator as any).connection.type === 'cellular') { + if ((navigator as any)?.connection?.type === 'cellular') { console.log('We are on a cellular connection: disabling seeding.') consumeOnly = true } -- cgit v1.2.3