mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix cellular detection in player
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user