Fix cellular detection in player

pull/2324/head
Chocobozzz 2019-12-09 10:16:58 +01:00
parent c4b4ab719c
commit fe9d05310b
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

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
}