mirror of https://github.com/Chocobozzz/PeerTube
Fix cellular detection in player
parent
c4b4ab719c
commit
fe9d05310b
|
@ -302,7 +302,7 @@ export class PeertubePlayerManager {
|
||||||
|
|
||||||
let consumeOnly = false
|
let consumeOnly = false
|
||||||
// FIXME: typings
|
// 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.')
|
console.log('We are on a cellular connection: disabling seeding.')
|
||||||
consumeOnly = true
|
consumeOnly = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue