Fix cellular detection in player

This commit is contained in:
Chocobozzz
2019-12-09 10:16:58 +01:00
parent c4b4ab719c
commit fe9d05310b

View 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
}