diff options
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 | } |