aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-12-09 10:16:58 +0100
committerChocobozzz <me@florianbigard.com>2019-12-09 10:23:23 +0100
commitfe9d05310bda71480a6d2bfbccc4ac80939754c0 (patch)
treeed1ebe3fead6811b5a376fa04457b03057184fd4 /client/src
parentc4b4ab719cb10009ca39045de9bcf7738c1fe5a7 (diff)
downloadPeerTube-fe9d05310bda71480a6d2bfbccc4ac80939754c0.tar.gz
PeerTube-fe9d05310bda71480a6d2bfbccc4ac80939754c0.tar.zst
PeerTube-fe9d05310bda71480a6d2bfbccc4ac80939754c0.zip
Fix cellular detection in player
Diffstat (limited to 'client/src')
-rw-r--r--client/src/assets/player/peertube-player-manager.ts2
1 files changed, 1 insertions, 1 deletions
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 {
302 302
303 let consumeOnly = false 303 let consumeOnly = false
304 // FIXME: typings 304 // FIXME: typings
305 if (navigator && (navigator as any).connection && (navigator as any).connection.effectiveType === 'cellular') { 305 if (navigator && (navigator as any).connection && (navigator as any).connection.type === 'cellular') {
306 console.log('We are on a cellular connection: disabling seeding.') 306 console.log('We are on a cellular connection: disabling seeding.')
307 consumeOnly = true 307 consumeOnly = true
308 } 308 }