From fe9d05310bda71480a6d2bfbccc4ac80939754c0 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 9 Dec 2019 10:16:58 +0100 Subject: Fix cellular detection in player --- client/src/assets/player/peertube-player-manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/src') diff --git a/client/src/assets/player/peertube-player-manager.ts b/client/src/assets/player/peertube-player-manager.ts index 4681c130c..d10fb7a4a 100644 --- a/client/src/assets/player/peertube-player-manager.ts +++ b/client/src/assets/player/peertube-player-manager.ts @@ -302,7 +302,7 @@ export class PeertubePlayerManager { let consumeOnly = false // FIXME: typings - if (navigator && (navigator as any).connection && (navigator as any).connection.effectiveType === 'cellular') { + if (navigator && (navigator as any).connection && (navigator as any).connection.type === 'cellular') { console.log('We are on a cellular connection: disabling seeding.') consumeOnly = true } -- cgit v1.2.3