]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix cellular detection in player
authorChocobozzz <me@florianbigard.com>
Mon, 9 Dec 2019 09:16:58 +0000 (10:16 +0100)
committerChocobozzz <me@florianbigard.com>
Mon, 9 Dec 2019 09:23:23 +0000 (10:23 +0100)
client/src/assets/player/peertube-player-manager.ts

index 4681c130cb739afeff2149aaee61a56e2f883605..d10fb7a4a9363fe85017e00b09de2ceb0824a0c7 100644 (file)
@@ -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
     }