diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-21 09:24:22 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-21 09:24:22 +0200 |
commit | 5196817c5d7cf86b35f3fa2cfe108ba283944482 (patch) | |
tree | e8d669b5c0e740ab7578b74984359177eb7b47de /client/src/assets/player/peertube-player-manager.ts | |
parent | 97b6428af78d7b00d9b57e1a317d1355f5e76939 (diff) | |
download | PeerTube-5196817c5d7cf86b35f3fa2cfe108ba283944482.tar.gz PeerTube-5196817c5d7cf86b35f3fa2cfe108ba283944482.tar.zst PeerTube-5196817c5d7cf86b35f3fa2cfe108ba283944482.zip |
Fix privacy concern for remote videos
Diffstat (limited to 'client/src/assets/player/peertube-player-manager.ts')
-rw-r--r-- | client/src/assets/player/peertube-player-manager.ts | 3 |
1 files changed, 1 insertions, 2 deletions
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 { | |||
361 | } | 361 | } |
362 | 362 | ||
363 | let consumeOnly = false | 363 | let consumeOnly = false |
364 | // FIXME: typings | 364 | if ((navigator as any)?.connection?.type === 'cellular') { |
365 | if (navigator && (navigator as any).connection && (navigator as any).connection.type === 'cellular') { | ||
366 | console.log('We are on a cellular connection: disabling seeding.') | 365 | console.log('We are on a cellular connection: disabling seeding.') |
367 | consumeOnly = true | 366 | consumeOnly = true |
368 | } | 367 | } |